Topic
  • 1 reply
  • Latest Post - ‏2013-01-22T13:00:55Z by cglockner
SystemAdmin
SystemAdmin
24948 Posts

Pinned topic Looking for something like an GetObject-Method

‏2013-01-21T10:35:22Z |
Hello

I'm using Clear Quest inside of an other software (Excel)


Dim objCqSession objCqSession = CreateObject(
"CLEARQUEST.SESSION") Call objCqSession.UserLogon(
"UserName", 
"UserPassword", 
"DatabaseName", 2, 
"")


After using a code like above, ClearQuest is running and the user has been logged in.

Instead of this I want to use:


Dim objCqSession objCqSession = GetObject(,
"CLEARQUEST.SESSION")

The last type of getting an ole-automatization-object shall be used in the situation, the user allready has started the programm and logged in. In this case no further login shall be necessary. But the "GetObject"-Method does not work.

Any ideas?

Best regards
Wolfgang
Updated on 2013-01-22T13:00:55Z at 2013-01-22T13:00:55Z by cglockner
  • cglockner
    cglockner
    345 Posts

    Re: Looking for something like an GetObject-Method

    ‏2013-01-22T13:00:55Z  
    Hello Wolfgang,

    If I understood your request correctly, you're thinking of reusing an existing ClearQuest session (which is started by the user opening the Windows client and logging in) from within that Excel macro - is that what you're trying to do?

    If so, unfortunately this won't be possible.

    -Christian