Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a user defined function in a report
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00180890
Message ID:
00180913
Views:
21
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform