Page 1 of 1

Working with scrolling list views

Posted: Thu Mar 17, 2011 1:45 pm
by pony
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.

Re: Working with scrolling list views

Posted: Thu Mar 17, 2011 2:32 pm
by Klaus
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

Re: Working with scrolling list views

Posted: Thu Mar 17, 2011 2:35 pm
by pony
Once again, thank you!