Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Arrays as Parameters - FPW2.6
Message
De
02/12/1996 17:23:11
Jon Ziegler
Mannesmann Dematic Corp.
Solon, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Passing Arrays as Parameters - FPW2.6
Divers
Thread ID:
00013985
Message ID:
00013985
Vues:
117
I am experiencing problems in FoxPro 2.6 for Windows when attempting to pass an array as a parameter to a program. Basically, the application will not compile properly - upon compiling, it always displays a message box saying that it is unable to locate the array variable. This error occurs in the program which has the array passed to it as a parameter (the program which contains the statement: PARAMETERS taARRAY). Here's the details:

I have a program, PROG1.PRG, which defines the array. This program calls a screen, SCREEN1.SPR, which displays the array within a list box. The screen calls procedures located within PROG1.PRG at certain times to carry out various tasks. When one particular procedure, PROC1, in PROG1.PRG is called it calls another program, call it CALC.PRG which calculates a value based on two of the columns within the array (defined in PROG1.PRG). I currently have the array in the PARAMETER list of CALC.PRG, however, when CALC.PRG is built with the application, it gives the above mentioned error "Unable to located taARRAY". I used the EXTERNAL ARRAY command within PROG1.PRG but this didn't help matters. I've also passed the array using the @ character as well. Thanks for any insights you can provide.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform