ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple Format Specifier Syntax

I have a simple question but complicated to me for a long time.

When I manipulate a string, I added some special characters like space, tab or other.

However, I want to know the skill in case of many special letter.

 

For example, 5 tabs requires \t\t\t\t\t but cannot be intuitive.

 

Do you know any other skill like 5(\t)?

 

labmaster.

0 Kudos
Message 1 of 4
(3,536 Views)

Hi Labmaster,

 

Do you know any other skill like 5(\t)?

You have a string with some characters and you want to add 5 TAB characters: you need to add those 5 TABs. What other "skill" do you expect?

 

5 tabs requires \t\t\t\t\t but cannot be intuitive.

What's not "intuitive" to type 5 TABs when you need them?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(3,513 Views)

In many cases, I felt some difficulties to count the number of special characters.

I wondered how other people can treat this. 

 

labmaster.

0 Kudos
Message 3 of 4
(3,494 Views)

Hi Labmaster,

 

I never had the need to include 5 consecutive TABs in a text file…

You have some weird formatting going on!

 

But you could:

- use a FOR loop to generate your TABs 🙂

- use an array of 6 empty strings, followed by ArrayToSpreadsheetString to generate 5 TABs… 😄

- use a ConcatString with 5 inputs and wire a TAB constant to each of them…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,487 Views)