dulu Posted March 14, 2016 Report Share Posted March 14, 2016 How to convert a number to string ? Quote Link to comment Share on other sites More sharing options...
Saragani Posted March 14, 2016 Report Share Posted March 14, 2016 There are 2 options: 1) Use the Message Composer and then use Build Message 2) There is a UDFB that someone wrote, that does that. 1 Quote Link to comment Share on other sites More sharing options...
dulu Posted March 15, 2016 Author Report Share Posted March 15, 2016 Thank you for your response Could you describe the process? Quote Link to comment Share on other sites More sharing options...
Saragani Posted March 16, 2016 Report Share Posted March 16, 2016 If you download the UniLogic sample projects from our website: http://www.unitronics.com/Downloads/Support/UniLogic/UniLogic%20Example%20Projects.zip Then inside the zip file, there is a a directory called UDFB's, and inside it, there is a UDFB called Num to ASCII.ulle Import that UDFB to your project, and call that function. Quote Link to comment Share on other sites More sharing options...
dulu Posted March 22, 2016 Author Report Share Posted March 22, 2016 well thank you Quote Link to comment Share on other sites More sharing options...
Jan.M Posted May 12, 2017 Report Share Posted May 12, 2017 Hello, I have problem with UDFB called Num to ASCII.ulle. I use it in my project, where i need convert number to ASCII and padding with zeroes. The convert number to ASCII work well but the padding does not function correctly, when i configure padding (2) the function shoult return me some number and padding with zeroes but still fill place with space. I donť know where is problem. Can you help me? Thank you. Quote Link to comment Share on other sites More sharing options...
Saragani Posted June 1, 2017 Report Share Posted June 1, 2017 Well, it partially works. I put for example a length of 6 and padding 2 (pad with spaces), and I get it pad with 0's except for the most left character, which seem to be a space. Is that what you are experiencing? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.