Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Defined Function question?
Message
 
To
31/12/1998 10:46:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00171889
Message ID:
00171898
Views:
30
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform