TD-888: SalFmtFieldToStr and Long String

Report bugs and possible workarounds for ANSI TD versions
Ren

TD-888: SalFmtFieldToStr and Long String

Post by Ren » 09 Jun 2010, 17:47

Hi, I'm having problems with SalFmtFieldToStr. I have a window handle pointing to a column of type Long String (hWndLSTR) and a Long String (lsMyString).

Code: Select all

! ---- This changes lsNewValue to correct data length (1302 characters)
SalGetWindowText ( hWndLSTR, lsNewValue, 2000 ) 
! ---- This does not (truncates to 899 characters)
SalFmtFieldToStr ( hWndLSTR, lsMyString, FALSE ) 
This (truncating >899 into 899) is obviously a problem. I'm wondering if this is a bug or somehow related to the data fields' settings. Funnily enough, when I use SalFmtStrToField (the reverse of this one), it works perfectly (ie no truncate)

I'm using Centura 4.2. Any help/ideas greatly appreciated.

Regards,
-MH

//edit1: PS: It does not matter if the last boolean is FALSE or TRUE

Ren

Re: TD-888: SalFmtFieldToStr and Long String

Post by Ren » 11 Jun 2010, 12:12

Just click <--, then --> to see truncation.

-MH

//edit1: added field lengths so it's easier to see
You do not have the required permissions to view the files attached to this post.

Return to “Bug Reports (TD 4.2 and older)”

Who is online

Users browsing this forum: [Ccbot] and 2 guests