-1 as last item problem

Ken Ray kray at sonsothunder.com
Sat May 14 01:54:28 EDT 2005


On 5/13/05 8:08 PM, "Dennis Brown" <see3d at writeme.com> wrote:

> put item 1 to -1 of line 1 of data
> 
> I get this:
> 
> 1,ABT,N,510,,Y
> 3,AMT,N,836,
> 22,AL,N,132,F,Y
> 
> Notice the missing last comma on the second line.

Yes, I've run into that as well, and now I add a check to see if the last
char on the line is a comma or not before I ask for the last item on the
line.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list