Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for passing array causes compile error
Message
De
29/06/1999 18:05:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Syntax for passing array causes compile error
Divers
Thread ID:
00235565
Message ID:
00235565
Vues:
46
I have a form that passes an entire array by reference as follows:
THISFORM.PrintReport(@laNewInvoices)

Then inside of the PrintReport() method I call a .prg and again pass the entire array as follows:
DO (oapp.csyspath+'reports\rpsojour.prg') WITH laNewInvoices

It took me awhile to figure out that I had to pass the array in the DO command without the @ (i.e. DO whatever.prg WITH @laNewInvoices results in syntax error).

I receive the array in my rpsojour.prg just fine as follows:
LPARAMETERS aNewInvoices

I don't understand how I'm recieving the entire array without the @, and having UDFPARMS set to VALUE, but it works. The problem is, whenever I compile my .exe I get the following error:

Program c:\majdata\reports\rpsojour.prg has the following errors:
Unknown ANEWINVOICES - Undefined

why is anewinvoices undefined and how do I get around it? I've been ignoring the compile error until I've had a chance to figure this out. My code is working as desired.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform