>DO FORM frmlookup TO laLookup >>
>LOCAL ARRAY laItemNo(2) > >*TMT 11/24/09 Modified the code to send the data back as 2 elements of an array >*laItem(1) is the Item No and laItem(2) is the TranID of the Transaction >IF csr_regtrans.rx_no > 0 && This is a Rx Item > laItemNo(1) = ALLTRIM(STR(csr_regtrans.rx_no)) + PADL(ALLTRIM(STR(csr_regtrans.refill_no)),2,"0") >ELSE > laItemNo(1) = csr_regtrans.upc_code >ENDIF > >*TMT 11/24/09 laItem(2) which is the Tranid >laItemNo(2) = Thisform.p_tranid > >POP KEY >USE IN csr_regtrans >SELECT refund >RETURN laItemNo >>
local loParam loParam = createobject('empty') addproperty(loParam, 'aItem[2]') do form frmlookup with loParam && loParam is an object and passed by reference * form init lparameters toParm this.Addproperty('oParm', toParm) * unload or anywhere else toParm.aItem[1] = ... * ...Also check techniques that doesn't need to pass and/or return anything. ie: