Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass array from one function to another
Message
De
09/06/1997 18:14:40
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
 
 
À
09/06/1997 17:25:51
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00035718
Message ID:
00035721
Vues:
34
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform