News:

  • May 06, 2026, 01:41:27 AM

Login with username, password and session length

Author Topic: Can the Do-more convert an Integer to a String  (Read 8292 times)

bskerry

  • Newbie
  • *
  • Posts: 2
Can the Do-more convert an Integer to a String
« on: July 07, 2015, 09:09:40 AM »
First time I've tried to do this and I'm thinking there should be a way, but I'm having trouble figuring it out. Any ideas on this would be appreciated.

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Can the Do-more convert an Integer to a String
« Reply #1 on: July 07, 2015, 09:37:19 AM »
STRPRINT
An output is a PLC's way of getting its inputs to change.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: Can the Do-more convert an Integer to a String
« Reply #2 on: July 07, 2015, 10:22:40 AM »
Look at the FmtInt() STRPRINT/EMAIL Print-Script function if you need to format it in hexadecimal or pad it with leading zeroes or spaces or insert commas as thousands separators, or ...

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: Can the Do-more convert an Integer to a String
« Reply #3 on: July 07, 2015, 10:25:18 AM »
The Help Topic is String Scripting Language Reference.  Search for DMD0168 in the Help for that topic.

bskerry

  • Newbie
  • *
  • Posts: 2
Re: Can the Do-more convert an Integer to a String
« Reply #4 on: July 09, 2015, 11:28:46 AM »
Works great. Thank you.