• Welcome to PlanetSquires Forums.
 

Calling a an Object

Started by Michael Meeks, May 02, 2005, 07:04:37 PM

Previous topic - Next topic

Michael Meeks

Hi,

This is what I have so far:

Object Call DISPATCH_FORM1_OCXCONTROL1.SignOn(txtSmtpIp, txtUserName, txtPassword)

What I need is something is to retrieve the val that is return by this call - but I don't know the syntax - that should be included...

It returns 0 if successful or an number - which would relate to the error code number.

Thanks in advance

Mike

Jose Roca


DIM vRes AS VARIANT
DIM lRes AS LONG
Object Call DISPATCH_FORM1_OCXCONTROL1.SignOn(txtSmtpIp, txtUserName, txtPassword)  TO vRes
lRes = VARIANT#(vRes)

Michael Meeks

Jose,

Thanks Again!  That works like a charm!

Regards
Mike