Best way to work with arrays?
Posted: 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
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