WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: siocnarf on March 19, 2021, 09:50:44 AM

Title: Dialog editor and Linefeed
Post by: siocnarf on March 19, 2021, 09:50:44 AM
Hi,

I  have a text variable: "This is a potato" and I would like to put in dialog editor a LF in the string to put potato on a second line.

If I do "this is a @LF potato then the texte will just show "this is a @LF Potato"
How may I do that?

Thanks,

Francois
Title: Re: Dialog editor and Linefeed
Post by: td on March 19, 2021, 10:08:58 AM
Assuming you are referring to one of your dialog's control variable you put the @LF in the variable and not Dialog Editor.

TheVariable = "this is a":@LF:"potato"
Title: Re: Dialog editor and Linefeed
Post by: td on March 19, 2021, 01:28:00 PM
If you were referring to some text that is part of a control's title but not something you can change inside a dialog callback procedure then you need to substitution in the dialog template. You can also specify substitution in the Dialog Editor. If you do use substitution in the template, you can't use the "Open with WIL" menu options when loading the template into the Editor.