CF ignores nulls in a list, so your list's length is 3.  If you want the
length to be 4, use Replace() to replace all occurrences of two adjacent
delimiters with a blank or some other character.

-David

On Tue, 20 Feb 2001 21:43:25 -0800 "Saul G Perez"
<[EMAIL PROTECTED]> writes:
> I had this experience just a few months ago and the returned values
> according to your loop swill be (3 4 5) skipping null (white 
> space).
> 
> Saul G Perez
> 
> -----Original Message-----
> From: Mark Balderson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 7:06 PM
> To: CF-Server
> Subject: CFLoop Questions
> 
> 
> I have a form with an input box named "getlist" where  3,4,,5  is 
> entered.
> 
> On the processing page I use:
> 
> <cfloop index="x" list="#getlist#>
>         <cfif isnumeric(x)>
>                 do something...
>         </cfif>
> </cfloop>
> 
> What value will X have when I hit the ,, ?
> 
> Thanks,
> Mark Balderson
> SSI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to