TDatabase Object problem

TDatabase Object problem

Postby richard-service » Mon Jun 19, 2017 9: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 (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 752
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: TDatabase Object problem

Postby nageswaragunupudi » Mon Jun 19, 2017 2: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
User avatar
nageswaragunupudi
 
Posts: 10242
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 4 guests