Welcome! Log In Create A New Profile

Advanced

Automation Object

Posted by Rui Pereira.pcs.crosspost 
Rui Pereira.pcs.crosspost
Automation Object
August 13, 2008 02:25PM
Hi

I'm new with Windev and I have this problem:
I've this code in VB that I couldn't reproduce in Windev.

Dim GCOApiCon As GcoAPIInterfaces.Coneccao_0801001
GCOApiCon = CreateObject("GCOAPI.Coneccao")
GCOApiCon.Abre(ServerName, UserName, Password, Company, Year)

GcoAPIInterfaces: Is a COM component redistributable that I've added to the project by adding a reference to it.
GCOAPI: Is a COM component installed by the main application.

Is there any way to do it?

Thanks in advance
Rui


Message forwarded from pcsoft.us.windev
KenKnight
Re: Automation Object
August 14, 2008 05:52AM


Hi Rui,

Try something like


--------------begin snip-------------------------------------------

GCOApiCon is object automation "GCOAPI.Coneccao"

GCOApiCon>>Abre( sServername, sUsername, sPassword, sCompany, sYear)

--------------end snip---------------------------------------------

Let me know if this works or not.

Cheers!
ken



Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: