General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only