Wrapping a custom tag around a string such as

<CF_FindFirstSpace>Here is some dummy text</CF_FindFirstSpace>

always returns

"Here is my text (the position of the first space is 0)"


FindFirstSpace.cfm has this code...

<CFIF ThisTag.ExecutionMode IS "end">
   <CFSET variables.PositionOfFirstSpace = Find(ThisTag.GeneratedContent, "
", 1)>
   <CFSET ThisTag.GeneratedContent = ThisTag.GeneratedContent & " (the
position of the first space is " & variables.PositionOfFirstSpace & ")">
</CFIF>


Is there any reason why it can't find the first space in the text that has
been passed to it?  TIA


-- 
Aidan Whitehall <[EMAIL PROTECTED]>
Netshopper UK Ltd
Advanced Web Solutions & Services

http://www.netshopperuk.co.uk/
Telephone +44 (01744) 648650
Fax +44 (01744) 648651
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to