Page 1 of 1

Scrolling List Count

Posted: Sat Jan 28, 2012 6:02 pm
by Jerryab
Can anyone tell me how to get a scrolling list count.

I have a scrolling list and need to get the number of lines populated in it. It contains
two colums of data and all I need is to know how to get the number of lines populated
in it and put the number into a variable.

I have done a search on this but could not find anything on this.

Mind you I am only 2 weeks new to LC environment. Alot to learn with LiveCode.

Re: Scrolling List Count

Posted: Sat Jan 28, 2012 6:48 pm
by Klaus
Hi Jerry,

well:
...
put the number of lines of fld "your scrolling list field here" into tNumOfLines
answer "There are" && tNumOfLines && "lines in that field!"
...
should do the trick :D

Please check these great learning resources here:
http://www.runrev.com/developers/lesson ... nferences/


Best

Klaus

Re: Scrolling List Count

Posted: Sat Jan 28, 2012 6:49 pm
by sturgis
This is what is so cool about LC.

Your question has almost the exact syntax of the answer.

Re: Scrolling List Count

Posted: Sun Jan 29, 2012 5:43 am
by Jerryab
Thanks for the help Klaus. Takes me a little time to retrain my mind from using Lua.