PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Michael Meeks on May 02, 2005, 07:34:37 PM

Title: Calling a an Object
Post by: Michael Meeks on May 02, 2005, 07:34:37 PM
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
Title: Calling a an Object
Post by: Jose Roca on May 02, 2005, 07:38:58 PM

DIM vRes AS VARIANT
DIM lRes AS LONG
Object Call DISPATCH_FORM1_OCXCONTROL1.SignOn(txtSmtpIp, txtUserName, txtPassword)  TO vRes
lRes = VARIANT#(vRes)
Title: Calling a an Object
Post by: Michael Meeks on May 02, 2005, 07:44:56 PM
Jose,

Thanks Again!  That works like a charm!

Regards
Mike