addData in Datagrids

Bob Sneidar bobsneidar at iotecdigital.com
Fri Dec 15 11:49:28 EST 2023


NVM. Apparently I have to send an array as an argument. Odd, it seems like it ought to create a new record with its own array structure. 

Bob S


> On Dec 15, 2023, at 8:44 AM, Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
> 
> Hi all. 
> 
> Datagrids have a command called addData which adds a line to the end of a datagrid. It returns the line number. 
> 
> Afterwards I ought to be able to do this”
> 
> ...
> Set the dghilitedIndex of me to tFoundIndex — this is a valid integer
> Put the dgDataOfIndex [tFoundIndex] of me into tMyArrayA
>> 
> HOWEVER…
> 
> tMyArrayA is empty! How can that be??? I quit Livecode and tested this in a new stack so it’s not any of my code doing ths. 
> 
> Bob S
> 



More information about the use-livecode mailing list