Hi folks,
I am trying to pass an array to a user define method with the following code
In the command button's click event
SELECT firstname, lastname ;
FROM users ;
WHERE id=123 ;
INTO ARRAY aUser
THISFORM.runautofill(@aUser)
In the form's runautofile method
LPARAMETERS aAutoFill
THISFORM.firstname.Value = ALLTRIM(aAutoFill(1,1))
THISFORM.lastname.Value = ALLTRIM(aAutoFill(1,2))
It works fine when I run the form, but it gets the error,
Unknown AAUTOFILL - Undefined, when I build it. Would anyone please tell me why, thanks!
Billy
I am trying to pass an array to a user define method with the following code
In the command button's click event
SELECT firstname, lastname ;
FROM users ;
WHERE id=123 ;
INTO ARRAY aUser
THISFORM.runautofill(@aUser)
In the form's runautofile method
LPARAMETERS aAutoFill
THISFORM.firstname.Value = ALLTRIM(aAutoFill(1,1))
THISFORM.lastname.Value = ALLTRIM(aAutoFill(1,2))
It works fine when I run the form, but it gets the error,
Unknown AAUTOFILL - Undefined, when I build it. Would anyone please tell me why, thanks!
Billy