Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Currently, I have two labels: one that prints the string variable (%s) and one that prints the time (%t[yyyy-MM-dd dddd]); regarding time, no need to specify a variable. These two show correct data. However, if I try to merge them into one so that the label shows %s %t[yyyy-MM-dd dddd, then it only shows s 2022-05-18 Wednesday
What I am interested in is the end result of TEST 2022-05-18 Wednesday, where TEST is set by a string variable. I know I can hack some code to concat string, but I'm trying to stay away from that and keep it as simple as possible.
Thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is not yet possible. There is an existing improvement suggestion for "It should be possible to configure multiple text variables", I have commented that you are also interested in it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Folks,
I am not sure what the proper format is to print both text and time in the same object (e.g. textbox, lable, rectangle, etc). For formatting guide is located via https://help.codesys.com/webapp/_visu_placeholder_with_formatting_sequence_in_a_string;product=core_visualization;version=3.5.17.0.
Currently, I have two labels: one that prints the string variable (
%s
) and one that prints the time (%t[yyyy-MM-dd dddd]
); regarding time, no need to specify a variable. These two show correct data. However, if I try to merge them into one so that the label shows%s %t[yyyy-MM-dd dddd
, then it only showss 2022-05-18 Wednesday
What I am interested in is the end result of
TEST 2022-05-18 Wednesday
, whereTEST
is set by a string variable. I know I can hack some code to concat string, but I'm trying to stay away from that and keep it as simple as possible.Thanks,
This is not yet possible. There is an existing improvement suggestion for "It should be possible to configure multiple text variables", I have commented that you are also interested in it.
Thanks Ian! Also thanks for confirming. Yes, this would be super useful. I guess for now, it's concating then.