D.Cook
Member
Having read the documentation and a few posts here, I'm still a little confused about the purpose of the FIRST and LAST keywords.
I'm especially confused why these keywords are allowed in a CAN-FIND statement, as they seem completely irrelevant.
It's for this reason I coded some CAN-FIND statements without a FIRST. Quite some time later I discovered that at least one of these statements were not behaving -- returning FALSE when a record matching the conditions exists. I added the FIRST keyword and to my surprise, the statement returns TRUE!
Now I've boiled the statement down to just the table name (eg below), and still get the same results. I must be missing something big..
I'm especially confused why these keywords are allowed in a CAN-FIND statement, as they seem completely irrelevant.
It's for this reason I coded some CAN-FIND statements without a FIRST. Quite some time later I discovered that at least one of these statements were not behaving -- returning FALSE when a record matching the conditions exists. I added the FIRST keyword and to my surprise, the statement returns TRUE!
Now I've boiled the statement down to just the table name (eg below), and still get the same results. I must be missing something big..
Code:
DISPLAY CAN-FIND(FIRST tablename)