character field with 256 length
Hi,
I am trying to modify a DBF which has an existing charter column with a 256 length.
However when writing to the dbf it corrupts it and wont open in ADA.
I have also tried creating a new DBF and Visual studio wont let me assign a length of 256.
DbfField field = new DbfField("TEST", DbfFieldType.Character, 256);
Any advice please?
As far as I know 255 is the max length a character field can be.
Type
Length
Decimals
Description
Character
1 to 65534
N/A
Fixed-length character field that is stored entirely in the table. Note that if you want the table to be compatible with Visual FoxPro, you should limit the field length to 254 or less.
Not using VFP so should be able to set it as high as 65534 when using DbfVersion.FoxBaseDBase3NoMemo
On Mon, 8 Jan 2024 at 14:03, Trevr @.***> wrote:
As far as I know 255 is the max length a character field can be.
— Reply to this email directly, view it on GitHub https://github.com/henck/dBASE.NET/issues/31#issuecomment-1881073248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKES5USJ6EHG5GIZNQYLN3YNP4ENAVCNFSM6AAAAABBROXF66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGA3TGMRUHA . You are receiving this because you authored the thread.Message ID: @.***>
What version of DBase?
Advantage Database Server v12.0.2
On Mon, 8 Jan 2024 at 14:15, Trevr @.***> wrote:
What version of DBase?
— Reply to this email directly, view it on GitHub https://github.com/henck/dBASE.NET/issues/31#issuecomment-1881092727, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKES5VWZAZ7D3GLZGTB2XLYNP5OXAVCNFSM6AAAAABBROXF66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGA4TENZSG4 . You are receiving this because you authored the thread.Message ID: @.***>
Although its an xBase variant it came later than FoxBase, dBASE III and dBASE IV which does not guarantee this git will work for it. If you can find any documentation on the file structure of xBase++ dbf's then you might be able to find where it's off.