Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a form property array
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01290063
Message ID:
01290067
Views:
17
Any property (including arrays) cannot be passed by reference.
You have to copy it to a local array, pass local array by reference and then copy back if necessary.
LOCAL ARRAY laParam[1]
ACOPY(thisform.ayParam, laParam)
llSuccess = PXREQUERY(ALIAS(), .T., @laParam)
>
>I am trying to pass a form's array property by reference.
>myform.ayparam, which is a two dimensional array
>
>the call:
>llSuccess = PXREQUERY(ALIAS(), .T., @thisform.ayParam)
>
>the function:
>function pxrequery( tuView, tlForce, taViewParams)
>exteranl array taViewParams
>
>
>on the call line, the error is 13, alias not found
>
>can I do this? and if so, what am i doing wrong
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform