In Clipper there is a 10 character limit for each fieldname in a database,
In Harbour, this should be limimtless and is standard liùmited to 63 characters. This can be changed, according to some info I found on the web, bij changing this line :
#define HB_SYMBOL_NAME_LEN 63
that can be found in a file named hbvmpub.h
But even with the default value of 63, if I create a dbf file like this :
mteamname="test.dbf"
TeamDbf := {}
AADD(TeamDbf, { "TeamFullName", "C", 20, 0 })
DBCREATE(alltrim(lower(MTEAMNAME)), TeamDbf)
The fieldname in test.dbf is "TeamFullNa" ... So the max length of a fieldname is still 10 ....
I even included the line in test.dbf like this :
#define HB_SYMBOL_NAME_LEN 63
mteamname="test.dbf"
TeamDbf := {}
AADD(TeamDbf, { "TeamFullName", "C", 20, 0 })
DBCREATE(alltrim(lower(MTEAMNAME)), TeamDbf)
This compiles without problem, but still the fieldname is chopped to 10 characters in test.dbf
What am I doing wrong ? Because it's frustrating to limit each fieldname to 10 chars while Harbour supposed to allow longer fieldnames (for readability)
I use Harbour 3.0
Thanks in advance
Ronny (programming in Clipper since 1988 ....)