VCXMD with VSRV - Getting Started

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Sep 6 22:12:37 CDT 2003


on 9/6/03 9:56 PM, Ken Ray at kray at sonsothunder.com wrote:

> Here's what I've done so far (note, there's no error checking code yet,
> I was walking through line by line in the debugger at this point):
> 
> 1) Download and install Valentina Server
> 2) Download Valentina Client and set "the externals" of your stack to
> the location of the DLL (as I mentioned above).
> 3) I moved an already existing Valentina database to the "Databases"
> folder in the Valentina Server folder.
> 4) I "killed" Valentina Server from Terminal by doing "top" and finding
> the process ID and doing "sudo kill <pid>"
> 5) I launched the file "master.vdb" from the "Databases" folder in VAPP
> and added one entry for my database ("krdb" as the name, and the path
> was "krdb.vdb").

Aha. I have miss this part. So you have register db...

> 6) I created a test stack with a single button with this code:

Well, try set verbose level to 3 and see what Vserver tell you

> -- Script of a test button:
> global gDBRef
> 
> on mouseUp
> get Valentina("SetDebugLevel",3)
> get Valentina("Init",20*1024*1024,<your Mac SN>,<your Win SN>)
> put Valentina("Database_New","localhost","sa","sa",15432) into gDBRef
> put Valentina("Database_Open","krdb",gDBRef) into gDBRef
> end mouseUp
> 
> This all worked. (Yay!) However when I added a line to query the
> connected database with something simple:
> 
> on mouseUp
> get Valentina("SetDebugLevel",3)
> get Valentina("Init",20*1024*1024,<your Mac SN>,<your Win SN>)
> put Valentina("Database_New","localhost","sa","sa",15432) into gDBRef
> put Valentina("Database_Open","krdb",gDBRef) into gDBRef
> put Valentina("Database_SQLSelectRecords",gDBRef,"SELECT * FROM
> Users") into tData
> answer tData
> end mouseUp
> 
> I get an "ERROR 1020" being returned by Valentina on the
> "Database_SQLSelectRecords" line. Any idea why this is happening?

-- 
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