Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is a parameter an array?
Message
From
12/11/2003 15:47:51
 
 
To
12/11/2003 12:05:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00848944
Message ID:
00849264
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform