>>>Is in possible to define and then call a function within a report?
>>
>>Evan, you can put a function call in any textbox in the report. I usually place those functions in the procedure file.
>
>But where can I define the fuction in the report? What is the procedure file? Do you mean a PRG?
You don't define a function in a report, you just place
myFunction1()
into Expression for the report textbox.
The function can be placed in procedure file as any other function ( yes, I mean PRG) and it should return your value ( or text string).
You also can call the methods from the form (active form at the moment) but you have to refer it in the textbox expression like
Thisform.Mymethod()
HTH,
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison