Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unknown PATABLES - Undefined Error
Message
De
02/03/2007 16:46:27
 
 
À
02/03/2007 16:45:10
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:
01200436
Vues:
32
Works for me. But I'm trying in in 9, so maybe it's different, but I don't think so. In any case, see my other post with the example for EXTERNAL ARRAY.


>Hi Fred,
>
>Nope, just tried that, did not fix it. And I am afreid that it would redimension my array, wouldn't it?
>
>
>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform