[V4MD Client] no error on bad connect

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jul 9 16:06:25 CDT 2004


On 7/9/04 12:40 PM, "Martin Wright" <martin at kinetix.co.uk> wrote:

> Hi
> 
> The OpenDatabase() returns 0 even if I try opening a Vserver with an
> impossible IP address.
> 
> 
> set gMyDB = new( xtra "VDataBase", "2.2.2.2", "sa", "sa", 15435, "",
> mySerialNumber)
> OpenDatabase( gMyDB, dbPath )
> err = ValentinaError()
> errStr = ValentinaErrorString()
> put "err = " & err
> 
> 
> ********** Message window ************
> * V4MD *: Create_VDataBase...* V4MD *: DB_New...done
> * V4MD *: OpenDatabase...done
> * V4MD *: ValentinaError...done
> * V4MD *: ValentinaErrorString...done
> -- "err = 0"
> 
> How can it return 'OpenDatabase...done' when there is no Vserver.
> Or is there another (very quick) test I can do after OpenDatabase() to make
> sure it connected successfully.

No, I think it must be

Open...error xxxx

Igor, please check again.
Modify our example project for this.
If it will return error code then send that project to Martin for check.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list