Information générale
Catégorie:
COM/DCOM et OLE Automation
Hi David,
Tried the double quoting method...but to no avail...same error.
I resolved my problem though. The cusMan.OleClass property holds the value 'Man Jr.Man Jr.1'(with spaces). However, after referring to the registry, I learned the actual class name is 'ManJr.ManJr.1'. Go figure!
Jon
Thanks David and Nigel for your help.
>Jon,
>
>As a total WAG try double quoting that argument:
>
>This.AddObject('cusMan','OleControl',['Man Jr.Man Jr.1'])
>
>>Hi All,
>> My problem is when I try to add an object using the AddObject() method and the OLE Object's OLEClass has a space in it, I get an OLE Error: Invalid Class String.
>>
>>Here's the code:
>>This.AddObject('cusMan','OleControl','Man Jr.Man Jr.1')
Précédent
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