Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unknown PATABLES - Undefined Error
Message
De
02/03/2007 16:39:27
 
 
À
02/03/2007 16:34:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
01200427
Message ID:
01200430
Vues:
25
Add "[1]" at the end of your array variable in the parameter list.


>Hi All,
>
>I am hoping this is something real simple that I am missing. I have an Array that I declare in a function, that I then pass down to other functions by reference (@) so they can read and work with. But when I compile the program, I get the error above in my lower functions.
>
>


>main function
> LOCAL llok, latables(1)
> llok = .T.
> llok = conversionmove(@latables)
>< end main function >
>
>FUNCTION conversionmove()
> PARAMETERS patables
> EXTERNAL ARRAY patables
> LOCAL llok, lnloop, lnrows
> llok = .T.
> lnrows = ALEN(patables, 1)
>< end conversionmove function >
>


>
>What am I missing? I looked at help, and it said you have to declare the array as external, so I did this and got the same error:
>
>


>main function
> LOCAL llok, latables(1)
> EXTERNAL ARRAY patables
> llok = .T.
> llok = conversionmove(@latables)
>< end main function >
>
>FUNCTION conversionmove()
> PARAMETERS patables
> EXTERNAL ARRAY patables
> LOCAL llok, lnloop, lnrows
> llok = .T.
> lnrows = ALEN(patables, 1)
>< end conversionmove function >
>


>
>TIA
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform