LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Escape Code "\t" (tab) not inserting tab in a text box

I am trying to insert a tab in a text box. I placed  a \t in my string but all I get out in the text box is a small square.  \n is being recognized as a "new line".  Has anybody had a similar problem with this.
 
Regards-
John
John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 1 of 7
(5,129 Views)
Hi John,

Tab characters ("\t") are currently not supported in a text box.  The ID for this issue is 3I9C6LYZ.  This way, you can keep track on the status of this feature. 

Here are a couple of posts that discuss workarounds: post 1 and post 2.

Best Regards,
Jonathan N.
National Instruments
Message 2 of 7
(5,112 Views)

Thanks for your reply Jonathan.

Isn't the "\t" escape code part of ANSI C string formatting? National claims that LabWindows is ANSI C compliant. What other parts of the standard are not being followed?

Regards-

John

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 3 of 7
(5,104 Views)
ANSI C covers inserting a tab character into a string and printing it to the stdio IO stream. That works in CVI. But displaying a string in a text box is not covered by the ANSI C standard. So there is no violation of ANSI C in that case.
Message 4 of 7
(5,086 Views)

Thank you for clarifying that Markus.

Regards-

John OC

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 5 of 7
(5,071 Views)

i also have similar situations.

But it's ok when you get text from text box using GetTextBoxLine. 🙂

0 Kudos
Message 6 of 7
(4,414 Views)

TaoZ,

 

This feature is still not implemented in the TextBox control. It remains noted as Jonathan mentioned previously, but now under ID 60954. The workarounds that Jonathan linked to still apply here.

National Instruments
0 Kudos
Message 7 of 7
(4,394 Views)