-1 as last item problem
Dar Scott
dsc at swcp.com
Sat May 14 00:11:26 EDT 2005
On May 13, 2005, at 8:54 PM, Dennis Brown wrote:
>
> repeat 10 times; get item 1 to -1 of it; end repeat
>
> I would have nothing left. But:
>
> repeat 10 times; get item 1 to 100 of it; end repeat
>
> would preserve all the commas.
You are right. I got on the wrong soapbox. But a related one and it
might explain why the bug you mentioned cropped up.
A workaround might be to have some symbol for an empty item. That
would also address the problem of representing a 0 item list vs a 1
item list holding nothing.
dar
--
**********************************************
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**********************************************
More information about the use-livecode
mailing list