General information
Category:
Coding, syntax & commands
Currently, my program (using VfP 5) allows entry of various bits of data, including one list. At the moment the list consists of a single string, so I use a list box to display the entered data. I am looking towards the list containing 2 or more related fields, some strings some numeric. What would seem appropriate is to move to a grid rather than list box, or trying to keep multiple list boxes synchronised on the form. Prior to entry into the table, the data is currently stored in an array, which is used extensively throughout the rest of the program. It would be a simple matter to convert the array to be multi-dimensional, but unfortunately I cannot see a way of associating array data to a grid.
Am I (as is not unusual), not reading the documentation thoroughly, or is it not possible to create a grid object using an array as the data source.
One method seems to be to create a temporary table & use that to access the grid & then repopulate the array from the table - but that seems to be a little bit excessive. Though it would be simpler than rewriting the program so that it used a temporary table rather than the current array.
Any help would be appreciated,
Paul
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only