Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newobject does not instantiate
Message
 
 
To
24/01/2006 21:33:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01089994
Message ID:
01089999
Views:
10
>Greetings all
>
>I am creating a message from a message class that uses a label as a base class. When I instantiate the class, it does not display on the form. Here is the code I use:
>
>   LOCAL oGrdHeader as Object
>   oGrdHeader = NEWOBJECT("clsGrdHeading","msgClasses.vcx")
>   oGrdHeader.caption = "Packing Slip Items"
>   oGrdHeader.top = 50
>   oGrdHeader.visible = .T.
>
>
>Any ideas why this does not display??
>Thanks in advance
>
>Vince

You better add this object to the form. E.g. thisform.NewObject("myLabel", "myClass", "myClasslibrary")
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform