INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Btrieve C# Extra Operations

Btrieve C# Extra Operations

(OP)
I have a Btrieve application and want to expose some of the data as VS.NET Datasets. I have the Btrieve C# sample from Pervasive.

What I don't understand about the sample is what they do to call the Equal Record API. Specifically they first call First_Record + 50. If that is okay they call Equal_Record + 50 with a blank key. If that is okay then they fill in the correct key and call Equal_Record. If that is okay then they return the results to the user.

Does anyone know the purpose of the calls where they add 50 to the operation code?

RE: Btrieve C# Extra Operations

The 50 bias on a GET operation is the "GET KEY" bias. Here's the description from the SDK manual:
"The Get Key bias allows you to perform a Get operation without actually retrieving a data record. You can use Get Key to detect the presence of a value in a file. A Get Key operation is generally faster than its corresponding Get operation. You can use the Get Key operation with any of the following Get operations:..."

info@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician

RE: Btrieve C# Extra Operations

(OP)
Thanks for the response. That explains what the are doing. I should probably use it in my C++ code also.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close