Re: Coding CreateKey


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Barbara Brazil on August 13, 2007 at 15:19:30:

In Reply to: Coding CreateKey posted by Stephen Auerbach on August 11, 2007 at 07:35:56:

Steve:

Yes, the offsets of the keys in the record are relative to zero. Also, remember that keys are not the same thing as fields. A key may span more than one field.

You don't need to reserve any extra space in your record for the key data. When you create the key, you tell Comet where in the record the key data is located. When you do a WRITE, you no longer need to specify KEY= . When you opened the file you indicated which key you wanted to use (the primary or a specific secondary key). When you do the WRITE, Comet looks in the record buffer at the position for the key in use (the one specified at OPEN) and copies it for use in accessing the key tree.

bb


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]