Scrolling List Count

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Jerryab
Posts: 12
Joined: Fri Jan 13, 2012 1:49 am
Contact:

Scrolling List Count

Post by Jerryab » Sat Jan 28, 2012 6:02 pm

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.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scrolling List Count

Post by Klaus » Sat Jan 28, 2012 6:48 pm

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

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Scrolling List Count

Post by sturgis » Sat Jan 28, 2012 6:49 pm

This is what is so cool about LC.

Your question has almost the exact syntax of the answer.

Jerryab
Posts: 12
Joined: Fri Jan 13, 2012 1:49 am
Contact:

Re: Scrolling List Count

Post by Jerryab » Sun Jan 29, 2012 5:43 am

Thanks for the help Klaus. Takes me a little time to retrain my mind from using Lua.

Post Reply