set the dgText back to datagrid
Posted: Thu Jun 05, 2014 11:55 am
Hi there,
I am puzzling why this much simplified example of what i am trying to achieve does not work...
So in this simplified example i am grabbing the dgText and presuming i can simply restore it from the variable at a later date..?
The dg text looks like this (shortened, there are around 600 lines) :
Spaces you see are tab delimiters:
So running the handler just appears to clear out the data grid and not the expected result of repopulating it with a copy of the original data..?
I am puzzling why this much simplified example of what i am trying to achieve does not work...
So in this simplified example i am grabbing the dgText and presuming i can simply restore it from the variable at a later date..?
Code: Select all
on mouseUp
put the dgText of group "DataGrid 1" into virginData
set the dgText of group "Datagrid 1" to virginData
set the dgHilitedLines of group "DataGrid 1" to 1
end mouseUp
The dg text looks like this (shortened, there are around 600 lines) :
Spaces you see are tab delimiters:
Code: Select all
<font='FontAwesome'></font> Adjust
<font='FontAwesome'></font> Adjust
<font='FontAwesome'></font> Adjust
<font='FontAwesome'></font> Adjust
<font='FontAwesome'></font> Adjust
So running the handler just appears to clear out the data grid and not the expected result of repopulating it with a copy of the original data..?