Working with scrolling list views

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
pony
Posts: 8
Joined: Tue Mar 15, 2011 3:04 pm

Working with scrolling list views

Post by pony » Thu Mar 17, 2011 1:45 pm

Arggh, I really want to like this product but the documentation for iOS is terrible.

I have a simple action in a button

Code: Select all

on mouseUp
   put shell ("ls") into shelltext
I'm trying to put the results in to a scrolling list view called directoryList. I've tried

Code: Select all

set contents of directoryList to shelltext
and

Code: Select all

put shelltext in to contents of directoryList
I've tried countless other variations.

One would imagine this is pretty simple to do. Where can I read more on how this should work.

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

Re: Working with scrolling list views

Post by Klaus » Thu Mar 17, 2011 2:32 pm

Hi pony,

...
put shell("ls") into fld "directoryList"
...
## or the long way:
put shell("ls") into shelltext
put shelltext into fld "directoryList"
...

I recommend to work through one if not all of these stacks here to get the (obviously missing) basics of LiveCode:
http://www.runrev.com/developers/lesson ... nferences/

The only docs for the iOS version are in fact the "iOS Release Notes" that you can access in LiveCode with:
Menu: Help -> iOS Release Notes


Best

Klaus


Best

Klaus

pony
Posts: 8
Joined: Tue Mar 15, 2011 3:04 pm

Re: Working with scrolling list views

Post by pony » Thu Mar 17, 2011 2:35 pm

Once again, thank you!

Post Reply