Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a form property array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01290063
Message ID:
01290067
Vues:
16
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform