Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is like

Status
Not open for further replies.

scottian

Programmer
Jul 3, 2003
955
0
0
GB
is it possible to compare part of a variable?

i.e
a = "question"
b = "my question"

If a is like b Then
msgbox "Yes You Can Compare"
End If





------------------------------------------------------------------------------
Ambition..........If you dont use it, you wont lose it
 


Hi,
Code:
a = "question"
b = "my question"

If b like "*" & a Then
   msgbox "Yes You Can Compare"
End If
Check Extra HELP on Like

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Thanks Skip,





------------------------------------------------------------------------------
Ambition..........If you dont use it, you wont lose it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top