Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to Class form on formset.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Passing parameters to Class form on formset.
Divers
Thread ID:
00019450
Message ID:
00019450
Vues:
87
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?
Répondre
Fil
Voir

Click here to load this message in the networking platform