Use String.IndexOf, for "*something*", String.StartsWith for
"something*" and String.EndsWith for "*something"
HTH,
Sam
On Tue, 8 Mar 2005 13:35:06 -0800, Andr
<An**@discussions.microsoft.com> wrote:
Hi
Does anyone know how I can use the Like statement in VB.net and C# .net?
I know it works in VB.net but when I turn on option strict, It doest like it.
How would I use this statement in VB.net and C#
If textbox1.text Like "*Week*" Then
.
End if
If(textbox1.text Like *Week*)
{}
I am also looking for the wild card *
Thank you,
B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
sam_blinex_com.