Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Real problem with classes
Message
De
06/06/2001 08:09:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00515559
Message ID:
00515640
Vues:
17
>>I am having a problem with classes. It has not been a problem for me in the past because I have only used them to drop on forms.
>>
>>My problem is that when I execute (in the command box):
>>oObj = createobject('myclass')
>>oObj.visible = .t.
>>
>>The object appears in its full glory in the debugger, but nothing shows on the screen...at all. This happens with every class that I try.
>>
>>Anyone have any ideas?
>>
>>BTW: if I try to execute: oObj.show(1), I get the error 'Property SHOW not found'
>>BTW2: I have SP5 installed.
>>Thanks, Randy
>
>Does your class return .f. from its init?
>
>Try to set left and top properties of this class (say, 0).
>Also if you want to add class to an existing from you should use AddObject method (in VFP6 NewObject method) instead of createobject. Check these methods in Help.

you used the term class genericly here, the show method is only native to the Form, FormSet, _SCREEN and ToolBar classes.
-jer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform