FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TDatabase Object problem
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
TDatabase Object problem
Posted: Mon Jun 19, 2017 09:45 AM

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?

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TDatabase Object problem
Posted: Mon Jun 19, 2017 02:35 PM

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.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion