FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to display a Multiline Get with linefeed in Alerts ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
How to display a Multiline Get with linefeed in Alerts ?
Posted: Sat Jul 11, 2009 04:32 PM

Hello,

For Message-translations, I use Multiline Gets.
These gets are not formatted ( linefeed CRLF ) to display them in Alerts or Tooltips.

In Multine Get :

The next Start
shows new Values.

The Multiline Get In Alerts or Tooltips shows only one Line with no Linefeed :

The next Start shows new Values.

Is it possible, to add any Char in a Multiline-Get forcing a Linefeed,
using the Var as a formatted Alert or Tooltip ?

Best Regards
Uwe :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to display a Multiline Get with linefeed in Alerts ?
Posted: Sat Jul 18, 2009 10:21 PM

Uwe,

Could you please provide a PRG example ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How to display a Multiline Get with linefeed in Alerts ?
Posted: Sun Jul 19, 2009 09:31 AM

Insert CRLF between each memoline(). CRLF breaks lines in ToolTips

Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: How to display a Multiline Get with linefeed in Alerts ?
Posted: Sun Jul 19, 2009 02:14 PM
Thank You very much,

For my Multilanguage-application, the Tooltip- and Message-part was still missing.

String-parts with CRLF, saved to a GET-field, works for Tooltip-display.
To make it easier for the Customer, I didn't use a Multiline-Get.
I extract 3 identical-parts from the Field to temp-vars for editing
and save them back with CRLF like :

Define 3 Gets from aVALUE[42] = Tooltip ( with included CRLF )
---------------------------------------------------------------------------
cVALUE42_a := PADR( StrToken( aVALUES[42], 1, CRLF ), 20, " " )
cVALUE42_b := PADR( StrToken( aVALUES[42], 2, CRLF ), 20, " " )
cVALUE42_c := PADR( StrToken( aVALUES[42], 3, CRLF ), 20, " " )

For the Tooltip, I use a Field ( C 60 )
Saving the Temp-Fields :
(1)->NOTES1 := cVALUE42_a + CRLF + cVALUE42_b + CRLF + cVALUE42_a



Substrings from aVALUE[42] for 3 Gets



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion