Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter array
Message
 
 
To
09/11/2011 09:11:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 5
OS:
Windows 7
Miscellaneous
Thread ID:
01528475
Message ID:
01528481
Views:
54
VFP does not have parameters array. The best you can do is to determine the number of parameters passed using parameters() or pcount() functions.

>Hi All:
>
>Is there a parameter array?
>
>
>foo('one', 'two', 'three')
>
>return
>
>Function foo(dog, cat, hen)
>
>? aPara(1)   &&displays 'one'
>? dog           &&displays 'one'
>? aPara(2)   &&displays 'two'
>? aPara(3)   &&displays 'three'
>
>
>return
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform