<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I found the solution in a earlier Mail: <div>Valentina.InitClient() is not enough, Valentina has to be locally initted.</div><div>I consider this as a bug (at least following the manual).</div><div><br></div><div>As for UTF-8, it is really very buggy:<div>
<span class="Apple-style-span" style="font-size: 14px; "><div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; ">Sub speichereWort(vonRid as Integer, wort as string)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space:pre">        </span>dim myRid as Integer</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space:pre">        </span>if fldOriginalwort.ValueExists(wort) then </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space: pre; ">                </span>myRid = fldOriginalwort.FindSingleValue(wort) </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space: pre; ">        </span>else</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space:pre">                </span>SetBlank</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space:pre">                </span>fldOriginalwort.Value = wort</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space:pre">                </span>myRid = AddRecord </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space:pre">        </span>end if</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; "><span class="Apple-tab-span" style="white-space:pre">        </span>lnkZuWoertern.LinkRecords(myRid, vonRid) </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; ">End Sub</div></div></div></span><br class="Apple-interchange-newline">
</div><div>This routine is able to produce (after "end if") myRid = 0 and this should be logically impossible (no Exception within the if-Statement!).</div><div><br></div><div>Everything related to sorting (and of course indexing) goes wrong with UTF-8, so my DB always was in UTF-16. BTW: The language is german, maybe it works in english.</div><div><br></div><div>Thanks anyway</div><div>Karl</div>
<br><div><div>Am 17.01.2010 um 10:50 schrieb Ivan Smahin:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello Karl,<br><br>Sunday, January 17, 2010, 6:20:01 AM, you wrote:<br><br><blockquote type="cite">First: Thanks for the tip to: [V4RB]OpenDB(classesWay) in Server. It worked.<br></blockquote><br><blockquote type="cite">Hi all<br></blockquote><br><blockquote type="cite">The first output shown below comes from a local Database, the<br></blockquote><blockquote type="cite">second one from exactly the same DB on the Server. Everthing is<br></blockquote><blockquote type="cite">identical except the call of the database and everthing runs on Snow<br></blockquote><blockquote type="cite">Leopard. Program on a MacPro, Server on a MacMini. Of course both on Intel.<br></blockquote><br><blockquote type="cite">VStudio (on the MacPro) gives the correct values(!), <br></blockquote><blockquote type="cite">Windows gives a empty char and <br></blockquote><blockquote type="cite"> If there is a Umlaut (äöü etc.) Ubuntu does not show the line but<br></blockquote><blockquote type="cite">shows '&' for '…' (Tested on Parallels-Systems).<br></blockquote><br><blockquote type="cite">The URL is <a href="http://karlgrob.ch">karlgrob.ch</a> or 192.168.0.x. The string from the cursor<br></blockquote><blockquote type="cite">(value of StringField) shows the encoding UTF-8. The whole thing on RealBasic 2009r5.<br></blockquote><br><blockquote type="cite">Does anyone know how I earned that? <br></blockquote><br>Please check - do you have UTF8 as "Storage Encoding"?<br>Actually it is still buggy and you should not use it. Set UTF16<br>instead (default state).<br><br><br><br><br>-- <br>Best regards,<br>Ivan Smahin <br>Senior Software Engineer<br>Paradigma Software, Inc<br>Valentina - The Ultra-Fast Database<br><a href="http://www.valentina-db.com">http://www.valentina-db.com</a><br><br>_______________________________________________<br>Valentina mailing list<br>Valentina@lists.macserve.net<br>http://lists.macserve.net/mailman/listinfo/valentina<br><br></div></blockquote></div><br></div></body></html>