Information générale
Catégorie:
Fonctions Windows API
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement