Add Bit Map Flag for Eof, Bof & Found
I do not think this feature exists yet but it would reduce the number of function calls if actions such as Seek, Locate,Skip, Append etc. could also set a value whose bits indicated the state of Found, Eof and Bof flags. Otherwise I have to execute several more function calls to get the value of these of these flags.
int Flags = 0 ; BOF Bit Zero, EOF Bit 1, Found Bit 2
AdsSkip(handle,1,@flags)
Another way might be to register a pointer to the flags for each table handle and then have this value updated for each operation. This means that no new parameters are needed but just a new function to register the flag:
AdsRegisterFlag(hTable,@Flags)
Instead of:
Do While nEoF = 0
AdsSkip(hTable,1)
AdsAtEoF(hTable,@nEoF)
EndDo
I would use:
Do While BitAnd(nEoF ,2) = 0
AdsSkip(hTable,1)
EndDo
Simon