|
-
Dec 17th, 2002, 10:27 PM
#1
Thread Starter
Junior Member
Working with the "Like" Statement
I was wondering if anyone could clarify the issue at hand here. I need to make a LIKE comparison. IE:
IF var LIKE "test" & * THEN
however that doesn't work.
Perhaps you could shed some light on the issue
Thanks,
Dave
-
Dec 17th, 2002, 10:31 PM
#2
VB Code:
If var Like "test*" Then
'or
If var Like someOtherVar & "*" Then
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 17th, 2002, 10:36 PM
#3
Thread Starter
Junior Member
Hrm no dice...
Wished that worked I really do =/
BIG FATTY ERROR:
Sub or Function not defined
Make much sence? NO!
CODE:
<%
DIM URL
URL = Request.ServerVariables("URL")
IF URL LIKE "/members/*" THEN
%>
<!-- #INCLUDE FILE="memnav.asp" -->
<%ELSE%>
<!-- #INCLUDE FILE="nav.asp" -->
<%END IF%>
Thanks,
Dave
-
Dec 17th, 2002, 10:44 PM
#4
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|