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

CFIF variable wild 1

Status
Not open for further replies.

KOVMoe

Programmer
Jun 30, 2004
34
US
I have an applicaiton where i need to search for a certain word in a string. So I just do a CFIF tag like this:

<cfif #qryData1.CustomerName# like '%Hold%'>
<cfset a = 104>
<cfelse>
<cfset a = 10402>
</cfif>

Will the place holder % work?

Thank you,

[king]Moe-King of the Village Idiots.

"When in trouble,
when in doubt;
Run in circles-
SCREAM & SHOUT!!"
Burma Shave
 
CONTAINS is exactly what I was looking for, Thanks!!!!!

Thank you,

[king]Moe-King of the Village Idiots.

"When in trouble,
when in doubt;
Run in circles-
SCREAM & SHOUT!!"
Burma Shave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top