Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't do simple API Object stuff!!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00885374
Message ID:
00885708
Vues:
14
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
Fil
Voir

Click here to load this message in the networking platform