General information
Title:
Passing Arrays as Parameters - FPW2.6
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only