V4REV > VServer connection problem

william humphrey bill at bluewatermaritime.com
Wed Apr 25 11:11:03 CDT 2012


*Use something like this called just once.  And everyone agrees we need an
example stack that does everything in one simple place. Also do not use any
of the "rev" database commands. use only the "v" ones.*

*
*

*on* DatabaseOpen



   *get* Valentina_InitClient( 10 * 1024 * 1024,"super long mac serial
number","super long windows serial number",)

   *-- new serial numbers added Dec 06, 2010*

   *get* Valentina_DebugLevel("kLogParams")

   *-- first establish connectionRef as gConnection*

   *put* VConnection_Constructor("localhost", "sa", "sa", 15432) intogConnection

   *-- next you establish dbRef as gDatabase*

   *put* VDatabase_Constructor( gConnection ) into gDatabase



   *get* VDatabase_DateFormat(gDatabase, "kYMD")

   *get* VDatabase_DateSep(gDatabase, "-")

   *get* VDatabase_Open( gDatabase, b_l_database.vdb )



   *if* it contains "ERROR" *then*

      *answer* "there was an error in DatabaseOpen"

            *exit* to top

   *end* *if*

*end* DatabaseOpen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina-beta/attachments/20120425/34863aab/attachment.html>


More information about the Valentina-beta mailing list