Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function Parameters Syntax Question
Message
 
 
To
07/05/2000 23:56:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00367141
Message ID:
00367146
Views:
16
David,

function MyFunc( MyParm ) started with VFP3. The same syntax works for UDFs too. The only time I ever use a LPARAMETERS statement is in method code in the class/form designer.

>Hey,
>
>I've got three questions for y'all about these two functionally identical FUNCTION definitions:
<b>Style A:</b>
>DEFINE CLASS MyClass AS someclass
><b>FUNCTION MyFunc(cParam1, nParam2)</b>
>ENDFUNC
>ENDDEFINE
>
><b>Style B:</b>
>DEFINE CLASS MyClass AS someclass
><b>FUNCTION MyFunc
>LPARAMETERS cParam1, nParam2</b>
>ENDFUNC
>ENDDEFINE
1) In which Fox version did Style A become possible, and where is it documented?
>
>2) How many of you regularly use Style A instead of the more common Style B?
>
>3) Are there any advantages or disadvantages to using Style A? Is it more consistent with the VB and VC world?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform