PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

0
Votes
Undo
  1. nick-peeters
  2. PLCnext Engineer
  3. Thursday, 15 October 2020

Dear Developer, 

I think it is an easyone, but i can not seem to figure it out:                                                                                                                                                  In the HMI page I would like to show a message generated by some code, becuase it is generated the length is not always the same.                          I would also like to put the message in a box with certain dimensions therefore need to ad a "new line" in the string to fit it in the message box over more lines.

typing it directly into the object an hitting the "enter" just ads \n (shown in the atachment) an de the new line is inserted, Adding \n in the string variable just shows the \n and does not create a new line, 

how to devide a String varaibale over more lines? what is the "newline" character?  \n, \N, \R, \r, $N, $n, $R, $r do not work. 

kind regards, 

Nick  

Attachments (1)
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Nick,

According to this recent answer ...
 
 
'\n' should work, but if that is not the case, then we will need to look into this.
 
EDIT:
You're right, it also does not work for me. I will follow this up.
 
~ Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  1. one week ago
  2. PLCnext Engineer
  3. # 1
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Nick,

After some investigation, this appears to be a bug (or at least a missing feature), and it has been reported to the developers.

Sorry for the inconvenience.

~ Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.