I use "<span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 12px; ">Valentina_EscapeString" command on livecode. It works great for that.</span><br><br><div class="gmail_quote">On Thu, May 26, 2011 at 9:16 AM, Warren Kuhl <span dir="ltr"><<a href="mailto:warrenkuhl@gmail.com">warrenkuhl@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I don't know of the exact verbage, but isn't there a way to pass in<br>
the values which will be able to take care of the single quotes in a<br>
field:<br>
<br>
ie.<br>
put VDataBase_SqlExecute(mDatabase,"Update Table1 set Term1 = :1 where<br>
keyword1 = :2", tTerm1, tKeyword1)<br>
<br>
Does something like the above SQL work in Valentina? If so...does it<br>
take care of the single quotes in a SQL?<br>
<font color="#888888"><br>
Warren<br>
</font><div><div></div><div class="h5"><br>
<br>
On Thu, May 26, 2011 at 6:35 AM, Warren Kuhl <<a href="mailto:warrenkuhl@gmail.com">warrenkuhl@gmail.com</a>> wrote:<br>
> Sorry, I actually meant single quotes. My mistake.<br>
><br>
> Example: Term1 = 'Bob's house is green'<br>
><br>
> Warren<br>
><br>
> On Thu, May 26, 2011 at 2:03 AM, Ruslan Zasukhin<br>
> <<a href="mailto:ruslan_zasukhin@valentina-db.com">ruslan_zasukhin@valentina-db.com</a>> wrote:<br>
>> On 5/26/11 7:48 AM, "Warren Kuhl" <<a href="mailto:warrenkuhl@gmail.com">warrenkuhl@gmail.com</a>> wrote:<br>
>><br>
>> Hi Warren ,<br>
>><br>
>>> I am trying to update a field (term1) with commas. I understand if I<br>
>>> add a "\" before the comma, it should work? Is there a better way to<br>
>>> do this? Or is this the best method?<br>
>>><br>
>>> put VDataBase_SqlExecute(mDatabase,"Update Table1 set Term1 =<br>
>>> " & term1 & " where keyword1 = " & keyword1 & "'")<br>
>><br>
>> You mean<br>
>><br>
>> Term1 = Some Value, With Comas<br>
>><br>
>> ?<br>
>><br>
>> First of all, this is tring.<br>
>> It should be in single quotes<br>
>><br>
>> Term1 = 'Some Value, With Comas'<br>
>><br>
>> Then never mind if comas present inside<br>
>><br>
>> --<br>
>> Best regards,<br>
>><br>
>> Ruslan Zasukhin<br>
>> VP Engineering and New Technology<br>
>> Paradigma Software, Inc<br>
>><br>
>> Valentina - Joining Worlds of Information<br>
>> <a href="http://www.paradigmasoft.com" target="_blank">http://www.paradigmasoft.com</a><br>
>><br>
>> [I feel the need: the need for speed]<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Valentina mailing list<br>
>> <a href="mailto:Valentina@lists.macserve.net">Valentina@lists.macserve.net</a><br>
>> <a href="http://lists.macserve.net/mailman/listinfo/valentina" target="_blank">http://lists.macserve.net/mailman/listinfo/valentina</a><br>
>><br>
><br>
_______________________________________________<br>
Valentina mailing list<br>
<a href="mailto:Valentina@lists.macserve.net">Valentina@lists.macserve.net</a><br>
<a href="http://lists.macserve.net/mailman/listinfo/valentina" target="_blank">http://lists.macserve.net/mailman/listinfo/valentina</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.bluewatermaritime.com">http://www.bluewatermaritime.com</a><br>