Page 1 of 1
get values of dg
Posted: Tue Jun 05, 2012 7:48 am
by link76
I want to save all values of my datagrid in the database, how can I get the values in array ?
thanks
Code: Select all
repeat with theLineNo = 1 to the dgNumberOfLines of group "Datagrid 1"
... get all value in array
end repeat
Re: get values of dg
Posted: Tue Jun 05, 2012 2:06 pm
by dunbarx
Hi..
The dgData of group "yourDataGrid" returns this.
In the clear (not an array, but rather in an ordinary variable that is tab and return delimited) "the dgText" is what is used.
Craig Newman
Re: get values of dg
Posted: Tue Jun 05, 2012 4:01 pm
by snm
Or dgData[colName] as an array if you prefer it. "i" is the rów number in DG.
Marek
Re: get values of dg
Posted: Tue Jun 05, 2012 4:54 pm
by dunbarx
Link76
You should download the datagrid user manual:
http://lessons.runrev.com/m/datagrid
Craig Newman