Page 1 of 1

TDatabase Object problem

PostPosted: Mon Jun 19, 2017 9:45 am
by richard-service
HI
I use TDatabase Object into Get. when I make TEXT "我是一個學生", press Ctrl+V appear TEXT "我是一"
This problem I test FWH13xx to FWH1512 same as problem.
Any solution?

Re: TDatabase Object problem

PostPosted: Mon Jun 19, 2017 2:35 pm
by nageswaragunupudi
Whether you use TDatabase or DBF directly, the Get limits the text entered to the number of bytes equal to the field length.
For example, if the field length is 15, it can accommodate only 15 byte length. On average 15 bytes is equal to around 5 Unicode characters.

The solution is to increase the size of the field length in the dbf file. As a thumb-rule make it 3 times the number of Unicode characters you want to store.