Results 1 to 4 of 4

Thread: Working with the "Like" Statement

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Posts
    22

    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

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. If var Like "test*" Then
    2. 'or
    3. If var Like someOtherVar & "*" Then

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Posts
    22

    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

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Sorry, I don't know ASP.
    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
  •  



Click Here to Expand Forum to Full Width