Using [NOT] RECORD filename EXISTS
John Webster
john.webster@cdp.co.nz
Tue, 18 Jul 2000 10:10:50 +1200
Well it's obvious. Depending on how fast you type I reckon the only saving
is how long it takes you to type "NOT", so the first version is quicker...
My understanding is that there's a record retrieval flag attached to the
buffer that gets set after an attempt is made to retrieve a record, so it
doesn't matter how you test it - it comes down to the C code used to test
TRUE/FALSE.
The first version is also much more elegant prose.
John W
--------
From: Robert J.M. Edis
Sent: July 18, 2000 9:46 AM
To: 'powerh-l@list.swau.edu'
Cc:
Subject: Using [NOT] RECORD filename EXISTS
G'day all
Can anyone tell me which is more efficient and results in better
performance, if at all, of the following syntax options please?
DEFINE d_xyz CHAR*1 = "Y" IF RECORD abc EXISTS ELSE "N"
Vs.
DEFINE d_xyz CHAR*1 = "N" IF NOT RECORD abc EXISTS ELSE "Y"
Regards,
Blue
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.