LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

list box column shown in password style

Hello,

 

for my application i need to show / convert a column of a list box (with passwords) in password style (******).

 

Example:

 

Name    Password     Rights

John      *****              No

Luis       *****              Yes

 

 

How can i make this.

 

greetings

 

schwede

0 Kudos
Message 1 of 5
(3,250 Views)

Hi schwede,

i'm not sure if there is a property for it, but you can use a string control with this option. Show it in front of the selected cell. The user can edit the cell and you store the entered password in a shiftregister. After this your write your * to the cell and hide the string control.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 5
(3,228 Views)
There is no automatic way of doing this. However, the mutlicolumn listbox's Item Names property is just a 2D array of strings, so all you need to do is simply replace the column with the passwords with a column of values in which each value is a bunch of asterisks, and then write to the property. Fairly straightforward.
0 Kudos
Message 3 of 5
(3,227 Views)

Thankyou for your answers.

 

 I think i need to explain this a bit more:

The user enter his Name and Password in different string elements and hit a button to write into item names of the listbox. Other user should not see his password. But i need the password later in the program. If there is no password there are no "*".

 

Have you some example code for me?

 

greetings

 

schwede 

0 Kudos
Message 4 of 5
(3,203 Views)

Schwede wrote:

Thankyou for your answers.

 

 I think i need to explain this a bit more:

The user enter his Name and Password in different string elements and hit a button to write into item names of the listbox. Other user should not see his password. But i need the password later in the program. If there is no password there are no "*".

 

Have you some example code for me?

 

greetings

 

schwede 


The way to do this is to keep the information about your user list in an array of clusters, one cluster for each user. This array is kept somewhere in your diagram, either in a shift register in your UI (rather ugly), or in a LV2 style global variable, that has methods to add, delete and retreive a record and also handles the loading and saving of the list from/to somwhere (text file, database, whatever).

 

Then whenever you need to update the list control you enumerate this stored list and convert it into the required 2D string array. What you do in this conversion step is completely up to you.

 

Rolf Kalbermatter

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 5
(3,196 Views)