VDataBase_IsOpen( gDBRef ) fails

william humphrey bill at bluewatermaritime.com
Tue Dec 15 10:22:20 CST 2009


The VConnection stuff is for the valentina server. I found that it was
impossible to work locally (even though the server is local) as I want to
also have vStudio open all the time too.

On Tue, Dec 15, 2009 at 12:14 PM, Tiemo Hollmann TB <toolbook at kestner.de>wrote:

>  Hi William,
>
> it is roughly not so far from my approach. My windows-mac stuff is to set
> the appropriate character set for the german umlaute.
>
> But even that happens far later, as my App kicks out. It stucks just at the
> first Valentina statement Valentina_InitClient().
>
> Btw. I don’t know the functions “VConnection_Construction()” and
> “VConnection_Open()” Is that Valentina or you?
>
>
>
> Thanks for the hint with Valentina_DebugLevel, I will give it a try, if I
> find a problem customer, who is capable to do some testing for me
>
> Tiemo
>
>
>   ------------------------------
>
> *Von:* valentina-bounces at lists.macserve.net [mailto:
> valentina-bounces at lists.macserve.net] *Im Auftrag von *william humphrey
> *Gesendet:* Dienstag, 15. Dezember 2009 16:37
>
> *An:* Valentina Developers
> *Betreff:* Re: VDataBase_IsOpen( gDBRef ) fails
>
>
>
> My database open (runs once only in mainstack on open card) looks like
> this:
>
>
>
> note:  I don't have any special stuff there for windows so I wonder if that
> is bad?
>
>
>
> *on* DatabaseOpen
>
>    *put* "" into field error_field  of card "Client Card" of stack
> "clients"
>
>    *put* "" into field IsOpenField  of card "Client Card" of stack
> "clients"
>
>    *put* "" into field "record ID"  of card "Client Card" of stack
> "clients"
>
>    *put* "" into field "total records"  of card "Client Card" of stack
> "clients"
>
>
>
>    *get* Valentina_InitClient( 10 * 1024 * 1024,"hulking long serial
> number",,)
>
>    *get* Valentina_DebugLevel("kLogParams")
>
>    *put* VConnection_Constructor("localhost", "sa", "sa", 15432) intogConnection
>
>
>
>    *if*  VConnection_Open( gConnection ) contains "ERROR" *then*
>
>       *answer* error Valentina_ErrString()
>
>       *return empty*
>
>    *else*
>
>       *--nothing here*
>
>    *end* *if*
>
>    *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"
>
>    *end* *if*
>
> *end* DatabaseOpen
>
>
>
> Then I call (just to be sure that it really opened):
>
>
>
> *on* ShowStatistics
>
>    *put* VDatabase_Name( gDatabase )  into field "error_field" of card "Client
> Card" of stack "clients"
>
>    *put* VDatabase_IsOpen( gDatabase ) into field "IsOpenField" of card "Client
> Card" of stack "clients"
>
> *end* ShowStatistics
>
>
>
> then I call (if the show statistics was ok) a bunch of stuff that pulls
> data from the database and fills out cards, option buttons etc.
>
>
>
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>


-- 
http://www.bluewatermaritime.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macserve.net/pipermail/valentina/attachments/20091215/7b401ff0/attachment-0001.html 


More information about the Valentina mailing list