Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create a VCX without using the Class Builder?
Message
De
11/04/2000 22:41:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00358362
Message ID:
00358490
Vues:
10
>

>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform