<html dir=""><head><style id="axi-htmleditor-style" type="text/css">p { margin: 0px; }</style></head><body style="font-size: 10pt; font-family: Source Sans Pro; background-image: none; background-repeat: repeat; background-attachment: fixed;"><div>No clue - I cannot duplicate on mine.</div><div>I did set both QT and QUANT to 2,.0 edit type.</div><div><br></div><div class="x-axi-signature"><br><div class="x-axi-signature" style="; font-size: 10pt; font-family: Source Sans Pro;">​Ernie Barnard<br>filePro Technical Support<br>ernie@fptech.com<br><br>Check the fptech.com FAQ's for answers to your questions:<br>http://www.fptech.com/fptech/fp_faq.php<br><br>Enter your support issues on our website for tracking:<br>http://www.fptech.com/fptech/sup_login.php<br><br><br>www.fptech.com<br>www.fileprotraining.com<br></div></div><br>On Wed, 08/08/2018 05:01 PM, Richard Kreiss <rkreiss@gccconsulting.net> wrote:<br><blockquote style="border-left: 2px solid rgb(00, 00, 204); padding-left: 4px; margin-left: 16px;"><div style="null; null;">

<meta http="http" equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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]-->


<div class="WordSection1">
<p class="MsoNormal">Fp 5.8.3.18 64 bit Windows<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My program does a lookup to an order detail record and put the quantity ordered in a long variable quant(2,.0).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The invoice entry screen has a dummy field qt(2,.) for the user to enter the invoice quantity.  The program then compares the order quantity to the invoices quantity.  Id different the the program goes to qty_msg.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If: quant lt qt<o:p></o:p></p>
<p class="MsoNormal">Then: goto less<o:p></o:p></p>
<p class="MsoNormal">if quant gt qt<o:p></o:p></p>
<p class="MsoNormal">then: GOTO more<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The problem is that no matter what the value of quant is, is is always greater then qt.  When qt is 3 and quant is 3 the program quant gt qt is always true.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have used the debugger and checked both values and both fields are the same size and type.  Any thoughts on why this comparison fails?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Richard Kreiss<o:p></o:p></p>
<p class="MsoNormal">GCC Consulting<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>


</div></blockquote></body></html>