Hello everyone
Some databases that I use are close to exceeding 1000 fields, dangerously approaching what I thought was the limit (1024).
I have searched for information on the internet, but everything is quite confusing and I finally decided to do my own tests.
With this code, I have managed to create a DBF with 2046 fields, but not 2048... (?)
/**/
Private aDbfStruct:={}
REQUEST DBFCDX //DBFNTX
aAdd(aDbfStruct, {'MEMOFIELD', 'M', 10, 0})
for i:=2 to 2046
aAdd(aDbfStruct, {'FIELD'+StrZero(i,4), 'N', 13, 2}) // max.2046 ; 2047->error
next
dbCreate("LIMITS.dbf", aDbfStruct)
USE ('LIMITS.dbf') EXCLUSIVE NEW
APPEND BLANK
LIMITS->MemoField := Replicate('.',1024*1024*128)
LIMITS->Field0002 := Len(LIMITS->MemoField)
CLOSE LIMITS
/**/
This number of fields exceeded anything I had read about limits and I decided to test the maximum capacity of an individual MEMO field as well.
I started with 32 Kb, but soon I passed the 1 Mb barrier and stopped at 128 Mb, because those amounts are beyond anything I had imagined.
Again surprise (at least for me), because I was able to create a database that could contain "almost" any file inside a MEMO field.
Maybe the limit of a DBT/FPT file (whatever it is) can be assigned to a single MEMO field?
It's not important but I'm curious... Why???
Can any expert enlighten me???
Thank you very much and Hooray Harbour !!!