>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