comparison problem
Richard Kreiss
rkreiss at gccconsulting.net
Wed Aug 8 14:01:55 PDT 2018
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 --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 15639 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20180808/d621cf62/attachment.bin>
More information about the Filepro-list
mailing list