philosophically though, if you look at them, they're the same function.  If
you consider an average text string as a " " delimited list, that it.

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-----Original Message-----
From: DeVoil, Nick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 30, 2000 4:59 AM
To: CF-Talk
Subject: RE: GetToken or ListGetAt?


>Is there any difference between the GetToken and GetListAt functions?

Yes. For a start, GetToken is a string function & GetListAt is a list
function... so you can use GetListAt on some text, but you probably
wouldn't use GetToken on a list.

> Which one is preferable?

It depends what you're trying to do!

GetToken is useful when you are working through some text and you want
to get the next word, ignoring all white space & newlines
(or any other set of delimiters you might want.)

ListGetAt gets you the element of a list at the specified position.
So you could use it for a similar task, but only if every word was
separated from the next by the same character, like the comma in a
CSV file, list of database column names/values, HTML attributes etc.

Nick


**********************************************************************
Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone.
Thank you for your co-operation.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to