![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a Btrieve file that I want to access using both the Btrieve API and SQL queries. (I have an old 16-bit app and a new app that access the same 'tables'). It looks like the SQL engine inserts an extra byte between integer fields and char fields, so that the data don't line up the same for the two access methods. More specifically, I have a table with a 4-byte integer key, followed by a 12-char field and then a 254-char field. (I've added the table to a database.) If I insert a record using the data manager, the first text field shows up in the 6th position in the Function Exector utility (the second text field does follow immediately after). If I insert a record in the Function Executor (lining up the first text field in the 5th byte offset, right after the integer), a SQL query "drops" the first character of the first text field and "moves" the first character of the second text field to the end of the first. This must be some kind of off-by-one error, but I'm not sure where to start looking to resolve it. Any help much appreciated. Jim |
#3
| |||
| |||
|
|
I have a Btrieve file that I want to access using both the Btrieve API and SQL queries. (I have an old 16-bit app and a new app that access the same 'tables'). It looks like the SQL engine inserts an extra byte between integer fields and char fields, so that the data don't line up the same for the two access methods. |
![]() |
| Thread Tools | |
| Display Modes | |
| |