LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formatiing a string or numeric control or indicator like a password field

Is it possible to format the field of a string or numeric, so that the output is all asterisks or dots (like a password)?

 

Ideally I would like to be able to change the format (ie hide/unhide) of the string or numeric programatically from outside of the VI.

 

Thanks for the help,

- Troy

 

0 Kudos
Message 1 of 3
(3,322 Views)

You can do this with a string but not with a numeric.

 

The Display Style property of a string can be used to set the password display mode.

 

 

0 Kudos
Message 2 of 3
(3,317 Views)

String control/indicator has a display style property, which can be set at runtime.


From the Labview help:

Sets the display style of a string object. Valid values include 0 (normal), 1 (backslash '\' codes), 2 (password), and 3 (hex). You cannot write to this property when the referenced string control has key focus.

 

 

--
Marko H

OptoFidelity - Enabling Smarter Future

Tampere - Espoo - Oulu - Cupertino - Redmond - Zhuhai

0 Kudos
Message 3 of 3
(3,311 Views)