Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function Parameters Syntax Question
Message
De
08/05/2000 22:47:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00367141
Message ID:
00367481
Vues:
27
Hey All,

Am I to conclude that DavidF is the only person here who regularly uses
FUNCTION MyFunction(cParam1, nParam2)
instead of LPARAMETERS? How about it? If you don't, why not? If you do, why?

>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?
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform