Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject() vs. NewObject() functions
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
CreateObject() vs. NewObject() functions
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01367158
Message ID:
01367158
Views:
65
Hi all

Maybe I am doing something wrong but for me a command like the following fails in the development environment when I DO main.prg (but not in the built exe)
loODBC = NEWOBJECT("cODBC", "cVSONoSCNonVisualUtilities")
unless I provide the full path to the vcx
loODBC = NEWOBJECT("cODBC", "C:\VSO3\Common\Libs\cVSONoSCNonVisualUtilities.vcx")
Alternatively I can switch to the following and yet be successful
loODBC = CREATEOBJECT("cODBC")
Which is more advisable function to use - NewObject() or CreateObject()

Thanks.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform