Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

New Line in String table


4 replies to this topic

WJSavoye

WJSavoye
  • Members
  • 19 posts

Posted 22 October 2001 - 21:14

Hi all,
I have updated an ISPro 6.x setup to ISD7.
There are lots of strings in the string tables carefully formatted with newline escape sequences, for several different languages. In 7.0 they are apearing as " " instead of new lines.
Hypothetical example:
@STRING1 = "Welcome to Product Setup"
This will show the " " characters.
To fix the problem, i need to split the string
@STRING11 = "Welcome to "
@STRING12 = " Product Setup"
and join them in the script...
@STRING11 + " " + @STRING12
This will be alot of work, hundreds of strings, multiple languages. Is there a way to put new lines in the string table?
Thanks
W. John Savoye

(Edited by WJSavoye at 4:26 pm on Oct. 22, 2001)


WJSavoye

WJSavoye
  • Members
  • 19 posts

Posted 22 October 2001 - 21:32

Thanks.
I see this bug is listed on the Known Bugs page.
I guess I will write a function
InterpretNewLine(szString) that parses the string into
substrings and joins them together in script with
+ " " +.
This is better than creating hundreds of new strings in my string table!

Thilak

Thilak
  • Members
  • 9 posts

Posted 24 October 2001 - 06:16

You can introduce a new line in the string by pressing Ctrl+Enter keys in the edit dialog.

Christof

Christof
  • Members
  • 56 posts

Posted 24 October 2001 - 08:21

Nice to now! Thanks, but where do you find the information?
:cool:

Thilak

Thilak
  • Members
  • 9 posts

Posted 25 October 2001 - 13:44

1. go to the GeneralInformation->StringTable.
2. right-click the mouse to get the ContextSensitive Menu.
3. choose the "Create & Set" item,
4. it would pop-up you with an edit dialog box.
5. enter the field name, string with ctrl+enter to have multi line string.

Note: be cautious with this string.  if you use this in the custom dialog, the .rc file would be generated with the string containg carriage return as a separate line, which in-turn give you compile error - or - non-generation of .res file.