<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-SG link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Friends,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>BACKGROUND: I have 4 entry fields (name is prefix
with ef….) on a livecode stack and an ADD button. Database/Table/Field references
all done and stable in card script.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>When I enter:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><b><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:#7F7F00'> put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>field</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> efCode
</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#7F007F'>into</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'> tArray[</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#00007F'>1</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>]</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'> </span><b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F7F00'>put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>field</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> efCost
</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#7F007F'>into</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'> tArray[</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#00007F'>2</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>]</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'> </span><b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F7F00'>put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>field</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
efDescription </span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#7F007F'>into</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'> tArray[</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#00007F'>3</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>]</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'> </span><b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F7F00'>put</span></b><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:#7F007F'>field</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";color:black'>
efPrices </span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#7F007F'>into</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'> tArray[</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#00007F'>4</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'>]</span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:9.0pt;
font-family:"Segoe UI","sans-serif";color:black'> </span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'> </span><b><span style='font-size:9.0pt;font-family:
"Segoe UI","sans-serif";color:#7F7F00'>get</span></b><span style='font-size:
9.0pt;font-family:"Segoe UI","sans-serif";color:black'> VDatabase_SqlExecute
(mDatabase, </span><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:#00007F'>"INSERT INTO pricelist (code, cost, description, prices)
VALUES (:1,:2, :3, :4);"</span><span style='font-size:9.0pt;font-family:
"Segoe UI","sans-serif";color:black'>, tArray)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif";
color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>This fails with the error: “</span><span
style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'>7004 Using clause
required for dynamic parameters.”<o:p></o:p></span></p>
<p class=MsoNormal>I did not expect this as the V4Rev reference does not have ’USING’
in this function’s syntax.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Have I missed something?<o:p></o:p></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoNormal>Sincerely<o:p></o:p></p>
<p class=MsoNormal>Ng Wee Tong<o:p></o:p></p>
<p class=MsoNormal>Livecode 4.6.4<o:p></o:p></p>
<p class=MsoNormal>Valentina 4.9.1<span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>