Wildcards

  • Thread starter Thread starter Daniel N
  • Start date Start date
Dim whatever As String = ("%%%%%%%%%%%%%%%%%%%%%%%")

OR

Dim whatever As String = *

Does not work
 
Daniel said:
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?
 
Daniel N said:
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.
 
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.
 
Nathaniel said:
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.
 
Back
Top