
You'll see in the NAME column I have another label field I called "bye".
I would like to populate the "bye" field with an array, however, I just cannot get it to work.
Here is the code of my BUTTON
Code: Select all
on mouseUp
global BYEWEEKS
put "ALABAMA" into theDataA[1]["Name"]
put "AL" into theDataA[1]["Email"]
put "ALASKA" into theDataA[2]["Name"]
put "AK" into theDataA[2]["Email"]
set the dgdata of group "DataGrid 1" to theDataA
end mouseUp
Code: Select all
on FillInData pData
-- This message is sent when the Data Grid needs to populate
-- this template with the column data. pData is the value to be displayed.
put "4" into theDataB[1]["bye"]
put "5" into theDataB[2]["bye"]
-- Example:
set the text of field 1 of me to pData
--set the text of field 2 of me to theDataB
set the text of field 2 of me to "bye"
end FillInData
Any ideas at all on how to do this?