passing an array of data as a parameter
Posted: Sat Feb 01, 2014 11:21 pm
Hi Guys,
I'm playing with data grids, and I want to take a line of data and pass that data to another command in another stack called CustomerContactEdit. I can seem to pass a single parameter such as in this case FirstName but what I can't seem to pass is the entire tRecordA and process
Anyone advise me how to get the data that belongs to the entire record across to the command?
Thanks
Jalz
I'm playing with data grids, and I want to take a line of data and pass that data to another command in another stack called CustomerContactEdit. I can seem to pass a single parameter such as in this case FirstName but what I can't seem to pass is the entire tRecordA and process
Code: Select all
on EditRecord pLineNumber
local tLine, tRecordA, tRecordId
put the dgDataOfLine[pLineNumber] of me into tRecordA
put tRecordA["firstname"] into tFirstName
answer tFirstName
--CustomerContactEdit tFirstName
CustomerContactEdit tRecordA
end EditRecord
-- this code is in another stack
command CustomerContactEdit pRecordA
put tRecordA["contactID"] into tContact
put tRecordA["firstname"] into tFirstname
put tRecordA["lastname"] into tSurname
answer tFirstname
return the result
end CustomerContactEdit
Thanks
Jalz