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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search for character in string?

Status
Not open for further replies.

Vcscwi

Programmer
Jan 15, 2004
57
US
Visual FoxPro has an $ Operator that...
Returns true (.T.) if a character expression is contained in another character expression; otherwise, returns false (.F.).

Syntax

cSearchFor $ cSearchIn

I'm not finding anything in VBA that compares...
Any suggestions?

Thanks!
 
Hi,

take a look at InStr function.

Skip,

[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue]
 
Also look at the LIKE function, useful in SELECT statements.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top