LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Darin.K

Allow a user-defined format string for Case Selector labels.

Status: New

Spawned from this bug report:

 

http://forums.ni.com/t5/LabVIEW/Bug-No-leading-zeros-allowed-in-hex-radix-case-selector-label/td-p/2...

 

and the subsequent discussion in this ill-fated idea:

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/case-structure-radix-allow-leading-zeros-or-even-make-...

 

I suggest that Case Structures incorporate a format string for displaying selector values (of any radix and most styles).

 

You can zero pad your hex values to be byte or word aligned, nibble align your binary values, display 0 and 1 instead of True/False for booleans.  I would probably lean against allowing it for strings since that typically adds to the obfuscation value instead of subtracting from it.

 

Of course this looks forward to the day when leading zeros are actually allowed....

1 Comment
Intaris
Proven Zealot

Also allow us to use enums for displaying cases whose inputs are actually integers.  Casting Enums on a RT system is ridiculously expensive.