![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]()
Hi,
I tried to add a string containing the equal sign (=) to my *_menu.txt, but it did not show up ![]() ![]() Cheers, LGN1 |
![]() |
![]() |
![]() |
#2 |
Navy Seal
![]() Join Date: Apr 2005
Posts: 5,501
Downloads: 19
Uploads: 0
|
![]()
= ; [ ] are usually reserved characters in config files, with their behaviour determined by where they appear in the line, and how the application reading the file implements the config file format.
Some implementations allow escape sequences, so if you haven't already, try \= or \; and see if that works, for example: 9998=an interdependent\; statement 9999=something \= something else If this doesn't work, then you may have to consider simply using other characters. Notwithstanding this, I would strongly recommend not using = in config file values. It creates confusion and leads very easily to unintended consequences. For example, if object A equals object B you might want to present a string to the user. So you might add this line to your config file: A=B=Something to say if true You'll then spend your debugging cycle tearing your hair out wondering why the text won't appear, which will be simply because the application will see the key as A and the value as B=Something to say if true, not what you were expecting. |
![]() |
![]() |
![]() |
#3 |
Ace of the Deep
![]() Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
|
![]()
Thanks for the reply, JScones
![]() I tried the \= before, but it did not work ![]() Anyway, I have circumvented the problem already by avoiding the = Thanks again for your reply. Cheers, LGN1 |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|