I am assuming that tempdefendant is a variable however this statement will
read it as a string. Since there is no space in tempdefendant as a string
you will get a zero.
Do this instead.
<CFSET pos=Find(" ","#tempdefendant#")>
-----Original Message-----
From: Angél Stewart [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 8:27 AM
To: CF-Talk
Subject: Finding a space in a string..
Hi dee ho all,
Would this find a space in a string?
<CFSET pos= #Find(Chr(20),'tempdefendant')#>
Because..it ain't working for some reason.
I also tried
<CFSET pos= #Find(' ','tempdefendant')#>
BUt that results in POS being 0 all the time.
-Gel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists