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 11:05:09
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
22/06/2021 10:39:30
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01681518
Message ID:
01681520
Views:
41
>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.

Create a new classlib, copy the formset into it. (backup?)
USE that new classlib
the second rec is the class formset

Copy the Reserved* fields from second to third record
decrement value in Reserved2 (number of objects)
remember name in Class field of second rec
in Parent field of third record, remove this name
in parent fields of all records following, remove name. (with the dot)
it might be better to replace objname in third rec and all of its occurences in parent field following recs to lower case
objname from third rec must be copied to last rec (replace the name of second rec - the class name)
delete second record
use
modi class
remove THISFORMSET where needed

if all is working, delete class from original classlib, copy back, delete new classlib.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform