Hi, I originally got that script line from Trevor's web site. I tried it with the [] brackets, both with space and no space. I tried it without the [] bracket value. All 3 ways the script stops running at this line, with no returned error.
Trevor, anyway to find out what's going on setting a DataGrid NOT from the place where the DG object is and this error? Regards, Mark Stuart Sarah Reichelt-2 wrote: > >> I'm trying to debug a script that populates the dgText of a DataGrid, but >> can't find the cause of the problem. >> > snip > > I think this line is incorrect for at least one & possibly 2 reasons. > >> set the dgText [firstLineContainsHeaders] of grp "HelpDataGrid" of card >> "Help" to tHelpLines > > Firstly, the "firstLineContainsHeaders" needs to be in quotes. > Secondly, I'm not sure if you can leave a space before the opening > square bracket. > > So try this: > > set the dgText["firstLineContainsHeaders"] of grp "HelpDataGrid" of > card "Help" to tHelpLines > > Without knowing exactly how the data grid works, I can't see that it > would be a problem setting the data while on another card. This is > just a standard property setting command which should work fine, > unless there is something in the relevant setProp handler that expects > the grid to be on the current card. If this is the case, you could > lock screen, go to the grid card, populate the grid, then go back to > the original card without any of this having been visible to your > app's users. > > Cheers, > Sarah > _______________________________________________ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > -- View this message in context: http://www.nabble.com/Debugging-DataGrid-script-tp24155940p24157856.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution