Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't do simple API Object stuff!!!
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00885374
Message ID:
00885708
Views:
13
Hi Joe,

See help on CREATEOBJECT and look at the ClassName parameter description. It says:

OLE objects are created using the following syntax for ClassName:
ApplicationName.Class
For example, to create a Microsoft Excel worksheet (which supports Automation), you can use the following syntax:
x = CREATEOBJECT('Excel.Sheet')

In Windows registry, you'd find the object registered as Api916.Dm916port (the application and a class of that application). This is a standard for any OLE object.

Hope this helps.
Sylvain Bujold

>Who knew I had to use a "." and refer to the object and it's class to create the object? Fox Help had NOTHING on this.
>
>So the correct answer was:
>
> dm916 = CREATEOBJECT('api916.dm916port')
> dm916.CommPort(AsiResult) = 2
>
>Thanks for your help guys.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform