Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a form's class
Message
From
29/09/1998 00:19:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00141697
Message ID:
00141765
Views:
33
>>I want to change a form's class from an existing class to a more complex class on the same lineage. There's probably a simple way to tweak the .scx but I can't figure it out. Shouldn't be any problems since the new class has all the PEMs of the old + more.
>>How do I do it?
>>TIA
>
>David,
>
>USE the scx as a dbf and find the record with the classname in the Class field (Memo) and the vcx library name in the classloc field (also memo). This is usually record 3 in teh scx. Change the class to be your new class name and the classloc to be the vcx that contains the new class.
>
>Work on a copy of the scx sct files.



Jim, it might get problem, if two form class has different number of elements!

To locate the Top-Show object class is easy!

The value for 'platform' is [COMMENT]
The value for 'uniqueid' is [RESERVED]
The value for 'timestamp' is Empty!

All the object in form will go first...
The order will follow the tree structure and adding sequence!!

Then, the last for group will be the Top-Show (Form class) information!

I suggest you to use Select into table and copy to real table...
then trace out which object and replace the corresponding Properties and Method Memo...

Then, You need to make a Function: AddOrOverWrite()
to fill in the most update properties, method in your desire....

if you only change the textbox/combox or other simple without including other object class, Jim's method is enough!!

Just replace the class, classloc with your new need!!

I always to do it to standard textbox to some complex class so that I don't to handle most properties setting.... include form tab order seq.!

Anyway, Good Luck! ^_^
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform