>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