I have a form datagrid where I enter data. This data goes in fine. I then have a script which puts the contents of the datagrid into a array variable which then loops through the array to display the data outside of the datagrid. The only issue I have found is the order that the array is in doesn't match the order the datagrid is displaying the data on the card. Does anyone know how I can 'force' the array variable to contain the datagrid in the specific order the data is in.
Many thanks as always
Jalz
Code: Select all
// this is the code i use to capture the values in the datagrid
put the dgdata of grp "dggrid_lines" into tGrid
//this is the loop structure I am using, which spits the correct amount of data, but sometimes in a completely different order
repeat for each key tIndex in tGrid
end repeat