Feedback:

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

0 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    srwhitesrwhite shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...

      Knowledge Base and Helpdesk