Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Typing parameters
Message
De
24/01/2018 02:53:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01657479
Message ID:
01657486
Vues:
58
>>Hello.....
>>
>>Just out of curiosity what is the difference between these two?
>>
>>FUNCTION ReturnSomething(MyParameter AS String)
>>.
>>.
>>.
>>.
>>ENDPROC
>>
>>
>>FUNCTION ReturnSomething()
>>LPARAMETER MyParameter
>>.
>>.
>>.
>>.
>>ENDPROC
>>
>>
>>Thanks in advance
>
>
>The second has one line of code more :-)
>No difference.

It's been a while but ISTR Intellisense can take advantage of the first form, so that when you call the function in other code you get prompted for the parameters the same way you do for built-in VFP functions.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform