Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Array by Reference to a Form vfp6
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Passing Array by Reference to a Form vfp6
Divers
Thread ID:
00659071
Message ID:
00659071
Vues:
57
DO FORM AddSamp WITH lcSample, lnReps, lnPackages, 3, lcProcess, @lcTemp

I get an error. My objective is to pass by reference all the variables except lcTemp. The form has a listbox and whatever is selected in that listbox is returned back to the calling form. However, I get an 'command cotains an unrecognized command word/syntax' error.

1) Can I mix pass by value and pass by reference in the WITH clause of the DO FORM?

2) How do I get AddSamp (a form) to return an array containing all the items selected from its combo box? I can get all the selected items into an array, without a problem, but I can't return it. And I can't pass an array by reference in the parameter list (see above) without getting an error...

matt
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform