Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keep the report open without any record returned!
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00352954
Message ID:
00356277
Views:
16
Hello Barbara,
I got the reports to work now. Thank you very very much for your help. Wish you the best.
Diane.


>The easiest way is to put the information you want saved in the CALLING form, not the form where you have the variables. I'm a little confused about your form names, so I'm going to rename them:

>1: Main form (MyMainForm) which has a "Get Report Parameters" button, a "Print Report" button and form properties for Product Name, Quality and any other variables you want to use in your parameters.

>2: Parameter Form (ParamForm) which has text boxes or combos for each parameter and a form property OCallingForm

>3: Report (MyReport)

>When you call the ParamForm from MyMainForm, pass the 'form object' of MyMainForm.

>Do form ParamForm with THISFORM && THISFORM will pass an Object type variable which refers to MyMainForm.

>In the INIT() of ParamForm, you'll have a parameter line and put the object into the form variable

**INIT Code
lparameter oForm
if type('oForm') ="O"
thisform.oCallingForm = oForm && This stores the variable you passsed to a form variable so you can use it any time.
endif

>In the OK button Click() code, you store the information back to MyMainForm
thisform.oCallingForm.ProductName = Thisform.TxtProductName.value
thisform.oCallingForm.Quality = thisform.TxtQuality.value
thisform.release

>You don't need to do anything with the UnLoad code - the information is already back in MyMainForm. Finally, you use the MyMainForm properties to update your cursor/view for the report.
Previous
Reply
Map
View

Click here to load this message in the networking platform