Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with array as parameter
Message
De
30/06/2013 16:24:04
 
 
À
30/06/2013 16:06:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01577528
Message ID:
01577530
Vues:
71
>>I passed an array as a parameter to a procedure. With the debugger I can see that all elements in that array are there.
>>
>>The problem is that when I compile I receive an error message (in the called procedure) saying "Unable to find NameOfMyArray"
>>
>>Problem is caused by following line
>>
>>nResult = NameOfMyArray[1,1]
>>
>>But like I said the values are all in that array.
>
>
>
DIMENSION foo[3]
>myFunction(@foo)
>
>
>FUNCTION myFunction
>LPARAMETERS taArray
>
>EXTERNAL ARRAY taArray
>
>taArray[1] = "Hi"
>taArray[2] = "Mom!"
>taArray[3] = "Miss you."
>
Thank you Rick.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform