LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
PJM_Labview

Render tab character in string control

Status: New

In most software a tab character (/t) is "visually equivalent" to several space characters (see tab list below in notepad).

 

8-30-2011 2-34-58 PM.png

 

Unfortunately in LabVIEW, a tab character is visually equivalent (in normal display mode) to 1 space character. I am proposing that this should be change to be n space character.

 

8-30-2011 2-38-00 PM.png



  


vipm.io | jki.net

13 Comments
crossrulz
Knight of NI

PalleM, you could just use the Search and Replace String function.  There is a boolean for Replace All on the top that you need to set to TRUE.  Wire the tab constant into the search string.  For the replace string, you can use Initialize Array with a Space Constant going into the value and your Number of Spaces into the size.  Use a Concatinate String directly on the array (1 input on the concatination) and the result goes into the replace string of the Search and Replace String.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
PalleM
Member

pauldavey
Active Participant

I would love this in Free Labels as well so when I copy/paste text code (C/JS etc) it looks so much better with nice indentation.