Like function and wildcards please help? 
Author Message
 Like function and wildcards please help?

I have been trying to get a string comparison to work for days now.
Does VBScrip allow wildcards (*)?  I also haven't been able to find any
information on LIKE?
An example of what I am trying to do is:
...WHERE MODEL LIKE '"FORD*"'....
Any help would be greatly apreciated.
Thanks in advance,
Jason


Mon, 10 Sep 2001 03:00:00 GMT  
 Like function and wildcards please help?

Quote:

>I have been trying to get a string comparison to work for days now.
>Does VBScrip allow wildcards (*)?  I also haven't been able to find any
>information on LIKE?

If you're talking about string comparisons in VBScript, take a look at the
RegExp object (regular expressions).

Quote:
>An example of what I am trying to do is:
>...WHERE MODEL LIKE '"FORD*"'....

If you're talking about ADO/Databases then I think that should be:
    "WHERE MODEL LIKE '"FORD%"'

Jeff



Mon, 10 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. PLEASE HELP PLEASE HELP PLEASE HELP

2. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

3. how to handle NULL values from a FORM when using date string functions - help please

4. Object Reference from within a function, Please help.

5. MsgBox Function , please help!!

6. Please help: Tree function?

7. how to handle NULL values from a FORM when using date string functions - help please

8. DateAdd function. problem please help

9. Please help: Tree function?

10. Using Functions and Subs?? Im new please help

11. Please Help - Calling an OCX function from vbscript

12. tiny text scroll function not working, please help

 

 
Powered by phpBB® Forum Software