I didn't test this, but you can debug as necessary. This will
do it.
<CFLOOP LIST=mainList index="outside">
<option value="ListGetAt(outside,3,"|")">
#ListFirst(outside,"|")#, #ListGetAt(outside,2,"|")# -
#ListLast(outside,"|")#
</option>
</CFLOOP>
> -----Original Message-----
> From: Ficke, Bill [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 09, 2000 2:57 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to parse string using delimiter
>
>
> I need to convert the delimited values (by the | symbol) to
> CF variables. I
> thought this would be simple to accomplish, but seems to have
> me stumped at
> the moment. Can some fine CF programmer provide some example
> code? I need
> to loop through this list and use the extrapolated values to
> populate a
> multi-select box.
>
> LastName|FirstName|ID|PhoneNumber,LastName|FirstName|ID|PhoneNumber
> WILSON|ERIC|1562|8029999,WIMBERLEY|MICHAEL|1568|8026666
>
> <select multiple size="4" style="font-family: Arial;
> font-size: xx-small"
> name="origional">
> <cfoutput>
> <option value="#ID#">#Lastname#, #FirstName# -
> #PhoneNumber#</option></cfoutput>
> </select>
>
> Thanks for the OT help.
>
> Bill Ficke
> --------------------------------------------------------------
> ----------------
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.