I tested this in VFP 6 SP3. I put a textbox with no PasswordChar and then two commandbuttons, one to set it to "*" and the other to set it to "" (display normally). Both commandbuttons worked as expected. Maybe something else is at work here?
>I have a textbox for entering passwords. It is usually masked using the '*' character in the passwordchar property.
>
>I'd like to have the ability to remove the masking on the fly, so the System Administrator can see the password, while a 'normal' user can't, but when I try to change the passwordchar property as below, I get an error, which says there is a data type mismatch.
>
>THISFORM.PASSDISPLAY.PASSWORDCHAR="*"
>
>The help says the property is character, and is available at run time. Does anyone know if I can change it on the fly and if so, how?
>
>I'm using VFP5a SP3
>
>Thanks in advance
>
>David O'Brien
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05