Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Real problem with classes
Message
 
To
05/06/2001 22:57:13
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00515559
Message ID:
00515925
Views:
19
>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

Randy,

The only object you can manipulate this way is a form. All other objects have to be added to a form (or a container within a form).

ie.

goForm = CREATE("form")
goForm.ADDOBJECT("txt1","textbox")
goForm.txt1.VISIBLE = .T.
goForm.VISIBLE = .T.
Brien R. Givens

Brampwood Systems
Previous
Reply
Map
View

Click here to load this message in the networking platform