Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT( ) and CREATEOBJECT( )
Message
 
 
To
04/03/1999 08:11:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00193960
Message ID:
00194081
Views:
21
With NewObject, you can specify the path/filename of a VCX file in the second argument. So, you can do this:

oFoo = NewObject("fooclass","c:\temp\foo.vcx")

This obviates the need to do Set ClassLib. Now, you can explicitly determine which class definition to use.

>Hi,
> What is the differences between NEWOBJECT() and CREATEOBJECT()? As noticed in MSDN, NEWOBJECT() allow to createobject without opening it. What does it mean? If I use it to automate word.application, what is the different between both of the commands?
>
>Thank you
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform