Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP60- NEWOBJECT()
Message
From
10/08/2000 18:06:58
 
 
To
10/08/2000 15:08:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00403575
Message ID:
00403722
Views:
10
>Thank you!
>
>>>What am I doing wrong? The object is not being displayed after I run this code.
>>>
>>>oNewObject = NEWOBJECT("msclogo","vfp class library")
>>>_Screen.oNewObject.Visible = .T.
>>
>>It doesn't look like you are adding the object to the _Screen object.
>>
>>Try:
>>
>>_Screen.NewObject('oNewObject',"msclogo","vfp class library")
>>_Screen.oNewObject.Visible = .T.
>>

Or, since many objects won't attach directly to screen:

_Screen.AddProperty('oNewObject',NEWOBJECT('msclogo','vfp class library'))
_Screen.oNewObject.Visible = .T.

>>NewObject() just creates a variable without attaching it to anything.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform