Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert a Formset class into a Form class
Message
From
22/06/2021 16:06:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/06/2021 12:09:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01681518
Message ID:
01681537
Views:
56
>>>>Good day all,
>>>>
>>>>I discovered a class library VCX with a Formset that has only one form class. My question is it possible to convert the formset into a single form class? And how does one go about doing it.
>>>>
>>>>Thanks in advance.
>>>
>>>Hack the VCX. That is.
>
>>>...somewhat errorprone sequence
>>
>>Thanks for the steps. I'll try it out.
>
>Before trying that I'd
>- instanciate the formset
>- get a reference to the form

For those who didn't do this regularly, I'll supply the code:

>- call .SaveAsClass(tcVcx, tcClass, tcDescript) of form reference
>
>check if steps were avoided ;-)

select the form in the editor, then in command window:
oX=ASELOBJ(aa,1)
oX .SaveAsClass(tcVcx, tcClass, tcDescript)

That's all, unless there was some code in the formset, which can be checked with class browser.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform