Home All Groups Group Topic Archive Search About
Author
6 Aug 2006 3:18 AM
Daniel N
How do I set a string as a wildcard?

Dim whatever as string = ?

Author
6 Aug 2006 3:39 AM
Daniel N
Dim whatever As String  =  ("%%%%%%%%%%%%%%%%%%%%%%%")

OR

Dim whatever As String = *

Does not work


Show quoteHide quote
"Daniel N" <DeezN***@yahoo.com> wrote in message
news:hcdBg.2580$uw5.1897@fe08.lga...
> How do I set a string as a wildcard?
>
> Dim whatever as string = ?
>
Author
6 Aug 2006 4:49 AM
Hal Rosser
look at regular expressions
http://support.microsoft.com/kb/301264/


Show quoteHide quote
"Daniel N" <DeezN***@yahoo.com> wrote in message
news:hcdBg.2580$uw5.1897@fe08.lga...
> How do I set a string as a wildcard?
>
> Dim whatever as string = ?
>
Author
6 Aug 2006 5:01 AM
Tom Shelton
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]
Author
6 Aug 2006 10:54 AM
Herfried K. Wagner [MVP]
"Daniel N" <DeezN***@yahoo.com> schrieb:
> 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/>
Author
6 Aug 2006 1:34 PM
Nathaniel
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.


Show quoteHide quote
"Daniel N" <DeezN***@yahoo.com> wrote in message
news:hcdBg.2580$uw5.1897@fe08.lga...
> How do I set a string as a wildcard?
>
> Dim whatever as string = ?
>
Author
6 Aug 2006 1:39 PM
Herfried K. Wagner [MVP]
"Nathaniel" <DeezN***@yahoo.com> schrieb:
>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/>