Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with array as parameter
Message
From
30/06/2013 16:06:52
 
 
To
30/06/2013 15:58:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01577528
Message ID:
01577529
Views:
83
>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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform