Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proc/Func
Message
 
À
05/05/2000 11:24:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00366590
Message ID:
00366603
Vues:
21
>Can anyone tell me the difference between a PROCEDURE and a FUNCTION.
>
>I thought there was a difference in FP/DOS, but doesn't apply with VFP?
>
>Any ideas?
>Thanks
>Kev

Kevin,

Ther is NO difference between the two VFP keywords PROCEDURE and FUNCTION. There is a difference between a procedure and a function, a procedure is called with the DO command and a function is called by putting parens at the end of the name as in;
DO MyRoutine && Calling a procedure

MyRoutine()  && Calling a function
Any PROCEDURE or FUNCTION in VFP can be called either way. With the function syntax the routine will return a value (Logical .T. by default). With the DO syntax any return value is ignored.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform