Attached simple form app, using your code displaying OK.
Just run and click the Button, stuff is added to memo1.
Does this work on yours???
Yes, it does!
Can you give us a access to your program source code?
Given that Josh's program works fine. Something in my code is causing the problem. At this time, I cannot fathom what it may be but, obviously I did something that resulted in QWORDs not working as expected.
I commented out all the code in my program except the definitions of Greater and Lesser, the if statement and the writeln. After that, it worked.
I'm just going to progressively uncomment sections of the code to figure out what caused the problem.
Thank you all for your help, greatly appreciate it.