Best way to work with arrays?

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
Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Best way to work with arrays?

Post by Newbie4 » Thu Jun 21, 2012 8:53 pm

What is the best way to work with data from arrays? Should I just unpack them into a field (scrolling field)? I could put them into a table but from the posts I have read, they are rather limited and need code written to make things go smoothly. I also read all the docs on datagrids and they look nice but rather complex. I want to be able to look at my data and select individual rows from it to work on. What is the best way to present it and be able to pick rows to edit? (fields/lists, tables datagrids or ???)

My tables are nested 3 levels deep and I want to be able to add more items to some of the elements. I thought of just unpacking the array into a text field but I am not sure how to highlight a row, edit it and then put it back. It seems like a lot packing and unpacking. That is why I am asking about tables or datagrids - to see if they have capabilities like you would find in an Excel spreadsheet.

Basically, how do you go from data in arrays to a user interface using the components in LiveCode.

Thank you in advance
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: Best way to work with arrays?

Post by townsend » Thu Jun 21, 2012 9:49 pm


Post Reply