Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is a parameter an array?
Message
De
12/11/2003 15:47:51
 
 
À
12/11/2003 12:05:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00848944
Message ID:
00849264
Vues:
33
dimension m.sqrt[1]

sqrt = "meow"

? sqrt[1]
: 1,00

? m.sqrt[1]
: meow
Normally you never need to m. arrays except when you want to pass them by reference to user-defined functions (ALEN() etc. are okay without m.) but if the array has the same name as a builtin function then the array needs to be emmed. This is probably because of name scoping (builtin names are always found first).

No, before I started this reply I did not know that square brackets can be used in function calls as well as in arrays ...
? iif[.f., 1, 2]
: 2
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform