Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Advantage and disadvantage of funct PRG
Message
De
04/12/2017 07:34:06
 
 
À
04/12/2017 07:08:44
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01656009
Message ID:
01656098
Vues:
66
>>Mike, do you mean that you'd rather have a function in a .prg than in the form that called the function?
>
>Hi Bill
>
>Firstly you cannot have a function in a .prg.

Yes, you can. A prg can take parameters, and it can return a value.

>You can have methods in a form. I first extend FoxPro itself. For example a UDF like GetEndOfMonth is universal, so that's the first choice. If the piece of code belongs in a data object, that's the second place I choose. It may then be in a business object. The form should be the last place to put code.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform