Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Procedure vs Function
Message
 
 
À
21/08/2006 09:36:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01147203
Message ID:
01147297
Vues:
18
Jignesh,

Fundamentally the only difference in VFP is whether or not you want to use the return value. If you do you have to call it as a function.
* call as procedures
do proc1
do func1

* call as functions
? proc1()
? func1()

procedure proc1()
return 1

function func1()
return 2
You should also look at the help topic for UDFPARMS.

>I have never used function, but I use procedure and it is returning value every time when I call it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform