Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass an array and return array from a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00759681
Message ID:
00759763
Vues:
14
>How would I pass an array to a form and then return the array to the >calling form?
>I would prefer to not use a variable that would be available after the >calling form is released.

Hi Allan
Because forms don't return parameters I use cursors instead
CREATE CURSOR mycursor (someval C(10))
*// populate the cursor
DO FORM myform
*// Use and fill the values
Thisform.Release
*// The cursor is populated and if you want the values in an array
SELECT someval FROM mycursor INTO ARRAY myarray
SELECT mycursor
USE
Cheers
John
To move a mountain start with the smallest stone
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform