<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Don't laugh....]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=1934</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=1934&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Don't laugh.....]]></description>
		<lastBuildDate>Thu, 10 Dec 2015 10:53:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11334#p11334</link>
			<description><![CDATA[<p>Hello tcoton,</p><br /><p>That&#039;s the part I don&#039;t understand : the variable is integer and the database field is also set to integer.</p><p>But with Dmitry&#039;s trick it works <img src="https://myvisualdatabase.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>In fact my question was :<br />when I want to insert TEXT, I escape the variable in the SQL Query with : </p><div class="codebox"><pre><code>&quot;&#039;+text_variable+&#039;&quot;</code></pre></div><p>what is the correct escape sequence for numbers ?</p>]]></description>
			<author><![CDATA[null@example.com (mathmathou)]]></author>
			<pubDate>Thu, 10 Dec 2015 10:53:55 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11334#p11334</guid>
		</item>
		<item>
			<title><![CDATA[Re: Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11330#p11330</link>
			<description><![CDATA[<p>It might be related to your variable maint_cat, if it is string, then you have to convert it, if it is integer, you should not need it... did you try?</p>]]></description>
			<author><![CDATA[null@example.com (tcoton)]]></author>
			<pubDate>Thu, 10 Dec 2015 08:21:41 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11330#p11330</guid>
		</item>
		<item>
			<title><![CDATA[Re: Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11314#p11314</link>
			<description><![CDATA[<p>Hello all,</p><p>I think I forgot to answer this post to mention it worked of course.</p><br /><p>But this still bothers me to convert Integer to strings before saving them into integer fields in database <img src="https://myvisualdatabase.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> <img src="https://myvisualdatabase.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> <img src="https://myvisualdatabase.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (mathmathou)]]></author>
			<pubDate>Wed, 09 Dec 2015 20:12:33 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11314#p11314</guid>
		</item>
		<item>
			<title><![CDATA[Re: Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11187#p11187</link>
			<description><![CDATA[<p><strong>mathmathou</strong><br />Because the SQL query is just text, it&#039;s ok using IntToStr for Integer values in sql queries.</p>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Mon, 07 Dec 2015 15:46:53 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11187#p11187</guid>
		</item>
		<item>
			<title><![CDATA[Re: Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11181#p11181</link>
			<description><![CDATA[<p>Thanks for the replies. </p><p>I will&nbsp; try that tomorrow morning&nbsp; (it is 1 am here ).</p><p>But wath bothers me is the IntToStr because I am trying to insert&nbsp; in a INTEGER databse field.&nbsp; I do not understand why convert the integer into string before inserting into... integer&nbsp; <img src="https://myvisualdatabase.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I Will see that tomorrow morning first thing.</p><p>Cheers </p><p>Mathias</p>]]></description>
			<author><![CDATA[null@example.com (mathmathou)]]></author>
			<pubDate>Mon, 07 Dec 2015 14:12:58 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11181#p11181</guid>
		</item>
		<item>
			<title><![CDATA[Re: Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11171#p11171</link>
			<description><![CDATA[<div class="codebox"><pre><code>if main_cat &gt; 0 then SQLExecute(&#039;UPDATE asset SET id_main_cat=&#039;+ IntToStr(main_cat) + &#039; WHERE id=&#039;+ IntToStr(current_asset_id));</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (DriveSoft)]]></author>
			<pubDate>Mon, 07 Dec 2015 11:05:25 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11171#p11171</guid>
		</item>
		<item>
			<title><![CDATA[Re: Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11160#p11160</link>
			<description><![CDATA[<p>You are trying to insert the value &#039; main_cat &#039; which is alphanumeric in an integer field.... maybe it should be +main_cat&#039;</p>]]></description>
			<author><![CDATA[null@example.com (tcoton)]]></author>
			<pubDate>Mon, 07 Dec 2015 09:19:55 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11160#p11160</guid>
		</item>
		<item>
			<title><![CDATA[Don't laugh....]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=11157#p11157</link>
			<description><![CDATA[<p>Hello all,</p><br /><p>Well, I am a bit ashamed to ask such a question, but I have problems INSERTING..... Integers.... <img src="https://myvisualdatabase.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><p>Can someone show me what the correct syntax is ?</p><br /><div class="codebox"><pre><code>if main_cat &gt; 0 then SQLExecute(&#039;UPDATE asset SET id_main_cat=&#039; main_cat &#039; WHERE id=&#039; current_asset_id);</code></pre></div><p>main_cat and current_asset_id being INTEGERs of course AND the <strong>table fields are also SET to INTEGER</strong>.</p><br /><p>Thanks in advance.</p><br /><p>Cheers</p><br /><p>Mathias</p>]]></description>
			<author><![CDATA[null@example.com (mathmathou)]]></author>
			<pubDate>Mon, 07 Dec 2015 07:25:53 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=11157#p11157</guid>
		</item>
	</channel>
</rss>
