AW: AW: Lines, items, repeat loops, > not always what you think

Thomas Fischer fischer at mail.sub.uni-goettingen.de
Wed Oct 19 02:28:55 EDT 2005


Hi Dave,

> >The number of lines or items does not count an additional empty 
> >object at the end: "A,B" and "A,B," both have two items.
> >I would think this is rather a feature, because I don't have to take 
> >care of removing delimiters at the end after creating lists with
> >put something & comma after myList
> 
> Except if you are using a list field! Then you either have to remove 
> them, or check that the selected line is less than or equal to the 
> number of lines in the list field.

Interesting. Yes, you're right, and this is a small difference to HyperCard, which will give you an empty line even if there is no return at the end of the field contents. I wasn't aware of that.

All the best
Thomas




More information about the use-livecode mailing list