[data grid] How to get the dgText really empty?

André Bisseret andre.bisseret at wanadoo.fr
Fri Dec 17 12:02:37 EST 2010


Bonjour Trevor,

I just noticed that I was completely wrong! 
I was emptying my data grids but not a hidden field which is used as an intermediary where preprocessed data are kept,
and which is used by the button which recapitulates the two data grids in the third one!!!!

Thanks a lot for your reply

 and really sorry to have disturbed you with what was my mistake!

André
 
Le 17 déc. 2010 à 14:47, Trevor DeVore a écrit :

> On Fri, Dec 17, 2010 at 5:22 AM, André Bisseret
> <andre.bisseret at wanadoo.fr>wrote:
> 
>> MY PROBLEM:
>> If I set the dgText of each dataGrid of card 1 and card 2 to empty (by
>> script) then,
>> If I click on the button of card 3, I get the recapitulation as if the data
>> grids of card 1 and 2 were still populated!
>> 
>> I know that one gets a really empty data grid  if one sets the
>> dgProp[columns] of the data grid as well as its dgText to empty. So that, it
>> is necessary to set again the dgProp[columns].
>> 
>> Is there a more simple way to get the dgText of a data grid really empty?
>> 
> 
> Are you specifically telling the dgText to return column names?
> 
> put the dgText[true] of group "DataGrid"
> 
> If so then you will always have at least one line that contains the column
> names. Either check if more than one line exists or pass in false rather
> than true.
> 
> put the dgText[false] of group "DataGrid"
> 





More information about the Use-livecode mailing list