Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass array from one function to another
Message
From
09/06/1997 18:14:40
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
 
 
To
09/06/1997 17:25:51
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00035718
Message ID:
00035721
Views:
36
For example,

DIMENSION days[7]
days[1] = "Mon"
days[2] = "Tue"
days[3] = "Wed"
days[4] = "Thu"
days[5] = "Fri"
days[6] = "Sat"
days[7] = "Sun"

= dispdays(@days)

FUNCTION dispdays
PARAMETER d

For i = 1 to 7
? d[i]
Next

It works ok as prg file. But when you compile as exe in a project. It tells me that "Can not find unknown 'd'". Any ideas how to get rid of this problem?

Jim S
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform