473,480 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Wildcards

How do I set a string as a wildcard?

Dim whatever as string = ?
Aug 6 '06 #1
6 1472
Dim whatever As String = ("%%%%%%%%%%%%%%%%%%%%%%%")

OR

Dim whatever As String = *

Does not work
"Daniel N" <De******@yahoo.comwrote in message
news:hc*****************@fe08.lga...
How do I set a string as a wildcard?

Dim whatever as string = ?

Aug 6 '06 #2

Daniel N wrote:
How do I set a string as a wildcard?

Dim whatever as string = ?
Daniel...

Can you be a little more concise about what it is your trying to
accomplish? What do you mean "set a string as a wildcard"? What
context are you using this?

--
Tom Shelton [MVP]

Aug 6 '06 #3
look at regular expressions
http://support.microsoft.com/kb/301264/
"Daniel N" <De******@yahoo.comwrote in message
news:hc*****************@fe08.lga...
How do I set a string as a wildcard?

Dim whatever as string = ?

Aug 6 '06 #4
"Daniel N" <De******@yahoo.comschrieb:
How do I set a string as a wildcard?

Dim whatever as string = ?

Check out regular expressions ('System.Text.RegularExpressions.Regex') and
VB's 'Like' operator.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Aug 6 '06 #5
I wanted the string to encompass every possible string.
I am using a function that requires a string, and I want to use a wildcard
so the function accepts every string possible.
"Daniel N" <De******@yahoo.comwrote in message
news:hc*****************@fe08.lga...
How do I set a string as a wildcard?

Dim whatever as string = ?

Aug 6 '06 #6
"Nathaniel" <De******@yahoo.comschrieb:
>I wanted the string to encompass every possible string.
I am using a function that requires a string, and I want to use a wildcard
so the function accepts every string possible.

Sorry, I am not sure what exactly you want to archieve. A variable of type
'String' can accept any string.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Aug 6 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
9675
by: Bharath Dhurjati | last post by:
Hello, I am looking for documentation that specifies the following behavior exhibited by java. The following (assuming MyClass.class is accessible and has a main()) java MyClass * yields...
1
10623
by: Ralph Noble | last post by:
I thought this problem would go away over the Christmas holiday, but of course it did not. I'm trying to write a stored procedure incorporating wildcards, so I can search for variations. Example,...
3
3465
by: sashi | last post by:
Hi, Is it possible to use wildards in SQL to drop a constraint on a table? Thanks!
11
9124
by: Shyguy | last post by:
I need to import a text file pretty much daily. I download the file and change the name to a standard name and then run the code to import the file into a table in my database. The problem is...
10
5089
by: Alvaro Puente | last post by:
Hi all! Do any of you know if wildcards are accepted when calling rename() function? Thanks/Alvaro
6
8289
by: Andy | last post by:
I have a form with several ComboBoxes. One of these is Surname, can I make it select all the Smiths for example by using wildcards? At the moment my query only picks up the individual Surname...
2
5065
by: Dennis | last post by:
I am trying to implement a "Find and Replace" dialog that allows using wildcards in the find string, much like the Find and Replace Dialogs in Ms Word, etc. Are there any references or examples on...
1
6658
by: Anandan | last post by:
Hi, This is regarding Dataset Filter: WILDCARD CHARACTERS Both the * and % can be used interchangeably for wildcards in a LIKE comparison. If the string in a LIKE clause contains a * or %,...
19
4601
by: Alan Carpenter | last post by:
Access 8 on Win98 and WinXP I'm having trouble with wildcards in the .Filename property of the FileSearch Object giving different results on win98 and XP. I've been successfully using...
5
36605
by: nidaar | last post by:
From a security point of view, is accepting wildcards like "%" in input parameters of stored procedures against any best practices? As an example, if a user defined function uses "Productname...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7045
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7087
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4483
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.