<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Ruslan,<div><br></div><div>What is the time in your place now? I see you work hard day and night.</div><div><br></div><div>Thanks a lot for info, it's most common with what I saw after the code of examples investigation. Only one missed for me is OUT() function what is blocking me to edit examples codes to make them working.</div><div><br></div><div>I have the questions which could help me with understanding Valentina:</div><div><br></div><div>- can I use both <b>get Valentina_InitClient()</b> and <b>get Valentina_Init( 8 * 1024 * 1024 )</b> in one code (for example if I'm using one db in my stack, and second db as client from the same script?</div><div>- should I use "initialize" command (<b>get Valentina_InitClient()</b> ) before using <b>LiveCode revOpenDatabase(...)</b> command or "initialize" command is used only if I'm using native Valentina API? </div><div><br></div><div>When we can expect next beta version?</div><div><br></div><div>I'll try to make corrections in examples to make it working referencing to your info, and let you know.</div><div><br></div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Best regards,<br><br>Marek Niesiobedzki<br><br><br></span>
</div>
<br><div><div>On Apr 24, 2012, at 12:30 , Ruslan Zasukhin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 4/20/12 8:46 PM, "Marek Niesiobedzki" <<a href="mailto:nm@studionm.pl">nm@studionm.pl</a>> wrote:<br><br><blockquote type="cite">I'm trying to connect to VServer Office from LiveCode over LAN (doesn't matter<br></blockquote><blockquote type="cite">if using my own test stack or Valentina examples "vserver.rev"):<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> put VConnection_Constructor( "192.168.1.20", "sa", "sa", "15432") into mConn<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">i'm getting mConn = 18727168 (integer value), so it's OK. But then execution<br></blockquote><blockquote type="cite">of:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> get VConnection_Open( mConn )<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">returning ERROR 0x82503 (error code 533763, error string "Invalid user name<br></blockquote><blockquote type="cite">or password")<br></blockquote><br>Hi Marek,<br><br><br>1) I have to see this error in this vserver example.<br>After learn, I can say so far fixes needed only V4REV examples.<br><br><br>Each example depends on stack<br> Examples/__shared__/ExampleTools.rev<br><br>This stack just have few helper functions.<br><br>Also it have global gClient flag, which YOU must change to TRUE,<br>If you want run examples in client/server model<br><br><br>BUT even after I have change it to TRUE, I see it not works, because<br>condirion<br> if the gClient of this stack is TRUE ..<br><br>do not happens ... I have change it to<br> if gClient is TRUE ..<br><br>Then it start call Valentina_InitClient.<br><br><br>==============================<br>2) ALSO I was need correct "localhost" to IP of my another LAN computer<br><br><br>* BELOW is this script after my corrections.<br> Now with this script example<br> SQL_way/Records_AddDeleteUpdate<br><br>Works fine ... Other major also<br><br><br>But example vserver.rev still stops on some line, because<br>It cannot find some method OUT()<br>I think this method should just display answer ...<br>But it is lost somehow...we will fix this asap also<br><br><br>==============================<br>3) TODO -- check RevDB for you ...<br><br>4) TODO V4REV to work correctly if both vkernel and vclient are inited.<br><br><br>==============================<br>global gClient<br>global gSSLEnable<br>global gLocalOnly<br><br>global gConnection<br><br><br>function InitValentina<br> put true into gClient -- YOU NEED MODIFY THIS TO TRUE FOR CLIENT-SERVER<br>mode of examples. <br> put false into gConnection<br> put false into gSSLEnable<br><br> if gClient is true then<br> get Valentina_InitClient()<br> --set the mPath of this stack to the short name of this stack &<br>".vdb"<br> else<br> get Valentina_Init( 8 * 1024 * 1024 )<br> end if<br><br> get Valentina_DebugLevel("kLogParams")<br>end InitValentina<br><br><br>function ShutdownValentina<br> if gClient is true then<br> if gConnection is not false then<br> get gConnection.Close()<br> end if<br> get Valentina_ShutdownClient()<br> else<br> get Valentina_Shutdown()<br> end if <br>end ShutdownValentina<br><br><br>function MakeNewDatabase<br> if gClient is true then<br> if gSSLEnable is true then<br> put VConnection_Constructor("192.168.2.22", "sa", "sa", 15434) into<br>gConnection<br> get VConnection_UseSSL( gConnection )<br> else<br> put VConnection_Constructor("192.168.2.22", "sa", "sa") into<br>gConnection<br> end if<br><br> get VConnection_Open( gConnection )<br> return VDatabase_Constructor( gConnection )<br> else<br> return VDatabase_Constructor()<br> end if<br>end MakeNewDatabase<br><br><br>function GetPath<br> get the effective filename of this stack<br> set the itemDel to slash<br> set the rootFolderPath of this stack to (item 1 to -2 of it) & slash<br> put the rootFolderPath of this stack into path<br><br> if gClient is true then<br> set the path of this stack to ""<br> end if<br><br> return path<br>end GetPath<br><br><br><br><br>_______________________________________________<br>Valentina-beta mailing list<br><a href="mailto:Valentina-beta@lists.macserve.net">Valentina-beta@lists.macserve.net</a><br>http://lists.macserve.net/mailman/listinfo/valentina-beta<br><br></div></blockquote></div><br></div></body></html>