Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with create operation

Status
Not open for further replies.

delphidestructor

Programmer
Oct 20, 2000
67
I am writing a small utility to create (op. 14) Btrieve data files. I am having a problem in the key specifications with the key position. I keep getting a return code of 27 (invalid key position). I can create files with no keys defined but when I send in a key spec of a simple 4-byte key in position 1 I get a return code of 27. Any value entered for this returns the same. Am I overlooking something in the key flag value, or possibly something else? Mike
 
Rookie mistake. Overlooked a pointer value. Now can anyone offer any help with segmented keys? Mike
 
What kind of problems are you having with segmented keys? Also, what language are you using? If I remember correctly, to create a segmented key, you just add the SEG flag to the key flag for all but the last segment. So if you have three segments, it would be on the first and second but not the third segment.
mirtheil@mirtheil.com
Custom VB and Btrieve development.
Certified Pervasive Developer
Certified Pervasive Technician
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top