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 12:27:30
 
 
To
22/06/2021 12:14:13
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01681518
Message ID:
01681527
Views:
30
>>>>>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
>>- call .SaveAsClass(tcVcx, tcClass, tcDescript) of form reference
>>
>>check if steps were avoided ;-)
>
>
>Something learned this day - I quit for today. :)

There still might be code or properties in Formset.Dataenvironment or in methods of both set and form - the FormSets were created to ease porting of fpw screens, so more checks are needed to guarantee nothing is dropped. Always thought vfp .SaveAsClass() to be a great precursor to Javascript Function.toString() ;-)
Previous
Reply
Map
View

Click here to load this message in the networking platform