Use LIKE to compare strings

Results 1 to 2 of 2

Thread: Use LIKE to compare strings

  1. #1
    Join Date
    Dec 1969

    Default Use LIKE to compare strings

    Hi.<BR><BR>I have been trying to compare two text-strings with LIKE like this (wordgames :):<BR><BR>if String1 Like ("*" & String2 & "*") then<BR><BR>But this doesn´t seem to work. Can´t I use LIKE in ASP? (like in SQL-querys). Is there another way to compare these strings?<BR><BR> works ok in Visual Basic....<BR><BR>And help is good help.

  2. #2
    Ugh!! Guest

    Default RE: Use LIKE to compare strings

    I presume you&#039re trying to search for one string within the other. Why don&#039t you use :<BR><BR>Instr(string,searchstring)-returns a numeric position where search string was found<BR><BR>and check for a non-zero result.<BR><BR>Ugh!! -<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts