Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert a Formset class into a Form class
Message
De
22/06/2021 11:58:49
 
 
À
22/06/2021 11:05:09
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01681518
Message ID:
01681521
Vues:
40
>>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.

Thanks for the steps. I'll try it out.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform