Author Topic: DM430 Convert String to Text  (Read 6552 times)

Offline williamk

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +1/-0
DM430 Convert String to Text
« on: October 17, 2019, 11:29:49 PM »
I'm trying to have some dynamic text on my display, generated outside of the screen and then fed in as a variable.  I can't seem to find a way to convert my strings to text attach to my object's TextDefinition.Signal value in the Screen Editor.

Is this something that's possible or am going down the wrong path here?

Offline williamk

  • PLUS+1 Developer
  • ***
  • Posts: 21
  • Karma: +1/-0
Re: DM430 Convert String to Text
« Reply #1 on: October 18, 2019, 04:19:32 PM »
I finally figured it out.  In the Screen Editor on the right side of the screen you double click on your text object in the Project Library.  Then in the Edit Text menu you add a Text Format and use a format specifier like: %1$.

Finally, in the Screen Manager on the left side of the screen you add your string as a signal to the "Data Value 1" field that was attached to your Text object.


This is all explained in the "Screen Editors" section of the User Manual in the "Edit Text Window" sub-section.