comparison problem

Ernie Barnard ernie at fptech.com
Wed Aug 8 14:25:43 PDT 2018


No clue - I cannot duplicate on mine.I did set both QT and QUANT to 2,.0 edit type.

​Ernie Barnard
filePro Technical Support
ernie at fptech.com

Check the fptech.com FAQ's for answers to your questions:
http://www.fptech.com/fptech/fp_faq.php

Enter your support issues on our website for tracking:
http://www.fptech.com/fptech/sup_login.php


www.fptech.com
www.fileprotraining.com

On Wed, 08/08/2018 05:01 PM, Richard Kreiss <rkreiss at gccconsulting.net> wrote:
> 












Fp 5.8.3.18 64 bit Windows

 

My program does a lookup to an order detail record and put the quantity ordered in a long variable quant(2,.0).

 

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.

 

If: quant lt qt

Then: goto less

if quant gt qt

then: GOTO more

 

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.

 

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?

 

 

Richard Kreiss

GCC Consulting

 

 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20180808/ccd38731/attachment.html>


More information about the Filepro-list mailing list