Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I create a VCX without using the Class Builder?
Message
From
11/04/2000 22:41:09
 
 
To
11/04/2000 20:39:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00358362
Message ID:
00358490
Views:
9
>

>CREATE CLASSLIB Junk
>CREATE CLASS MyTextBox OF Junk.VCX AS _Textbox From _Base.VCX
>MODIFY CLASS MyTextBox OF Junk.VCX NOWAIT
>ASELOBJ(xx)
>xx[1].Width= 100
>xx[1].Writemethod("Click","WAIT WINDOW PROGRAM() NOWAIT" + CHR(13)+ "RETURN .T.")

>xx[1].Save()

Probably an example is just proof of concept, but the last line results in an error. There is no method "Save" for "mytextbox". My attempt to use SaveAsClass instead resulted in conflict with active "Modify Class". It would be nice to achieve closing "Modify Class" form automatically.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform