04-28-2009 08:27 AM
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
04-28-2009 09:29 AM
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
04-28-2009 09:30 AM
04-29-2009 12:29 AM
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
04-29-2009 01:15 AM
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