Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters to Class form on formset.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Passing parameters to Class form on formset.
Miscellaneous
Thread ID:
00019450
Message ID:
00019450
Views:
85
Maybe I'm completely thinking about this wrong, but
here is what I am trying to do:

I had a form that I was using to print all reports from
our VFP 3.0b app via Crystal Reports. This was working great, but Crystal Reports has a major flaw in that you can't use MEMO fields as part of formulas so you can't print text based on EMPTY( memo_field ). The solution is to do the check in VFP, and set a formula via the
OLE control (or API) that accesses Crystal.

Now here is where my logic may be completely wrong, and this is where my problem occurs.

I figured the best way to do this was to convert my "form" into a "class" and then create a new FormSet containing the form inheritted from the class. In theory this seems to work except for 2 things. Parameters passed into the Formset don't make it into the Form (and I've even tried explicitly calling the INIT method of the form from the INIT method of the formset, but it didn't seem to work). Also, the form was "activated" by default, however the formset does not "activate" the form automatically and I am having problems getting that to happen.

Am I approaching this problem correctly? Any ideas/thoughts?
Reply
Map
View

Click here to load this message in the networking platform