Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Class
Message
From
07/02/1999 21:18:02
 
 
To
07/02/1999 16:34:20
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00184921
Message ID:
00184950
Views:
17
>I want to make a textbox in a class lib which has a same property with an editbox in a same class, is there any way to copy editbox property to new textbox ?
>
>
>TIA


There is a "SaveAs" tools in File Section!!
You can download it and Save as your old class in VCX into a New Class in another name in another VCX!!

Then, You need to hack the vcx... to change the type of class!
Since this action may be harmful and you may lose your vcx,
Pls make BACKUP b4 hack!

As the new saved class will be near bottom of VCX table...

Use MyClass.Vcx
go Bottom
Browse

* Then, double-click OR {CTRL+PageUp} on ObjName to find the correct New Class
Name!
Then, there are Class, BaseClass fields in the same row,
edit those field from Textbox to EditBox

But there is a big question!! You need to copy a lot if your class is a child class...
- txt(TextBox)
  - txtNumber(Txt)
    - txtNonNegNumber(TxtNumber parent class)...
  - txtChar(Txt)
    - txtUpperChar(TxtChar)
    - txtLowerChar(TxtChar)
as you can't reference a class, classloc with different Baseclass type!

As you know, for above example structure, the record on txtNonNegNumber will be:
Class       Classloc         Objname
txtNumber   [SameVCX Name]   txtNonNegNumber
txt         [SameVCX Name]   txtChar
...



Anyway, good luck and remember to BACKUP!! >^.^<
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform