Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Defined Function question?
Message
 
À
31/12/1998 10:46:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00171889
Message ID:
00171898
Vues:
31
>I have a user defined function that I would like to have my program call. My question is were should this function be placed in the code. I have tried to put it in the forms init method, but get error messages. Do I have to place it in the main.prg? Thanks in advance for any help offered.

Hi John,

There are a number of answers to your question. You'll have to determine what's best for your needs.

You can make the function a stand alone prg file and call it as you would have in FPW or FPD.

You can make it part of a procedure file as you could in these earlier versions.

You can create it as a custom method for the object.

You can incorporate it as part of a custom class.

How you choose to implement it is strictly up to your needs and programming style.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform