Home
Community
Discussion Forums
Most Active Software Boards
LabVIEW
Topic
LabVIEW
Register
Ā·
Login
Ā·
Help
Community
Category
Board
Documents
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forĀ
Search instead forĀ
Did you mean:Ā
Topic Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All Forum Topics
Previous Topic
Next Topic
Format String from 1 Digit to 3 digits
Format String from 1 Digit to 3 digits
thomla
Member
ā06-09-2005
01:36 PM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Hi @all,
how can i format a string with 1 digit to a string with 3 digits, like this: 1--->001 or 12---->012 or 0---->000 and if the string is 999 it have to be 999
š
Tbanks,
Thommy
0
Kudos
Message
1
of 2
(3,017 Views)
Reply
Re: Format String from 1 Digit to 3 digits
Bob_Y.
Active Participant
ā06-09-2005
01:47 PM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Convert the string to a number, then convert it back with the width and padding set.
Hope that this helps,
Bob
Bob Young
DISTek Integration, Inc.
-
NI Silver Alliance Partner
format number string.vi ā13 KB
1
Kudo
Message
2
of 2
(3,009 Views)
Reply
All Forum Topics
Previous Topic
Next Topic