Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Yes, you're right. It worked using command buttons. I am using a checkbox, and hadn't initialised the variable first, so it was treating it as numeric instead of logical. That was the 'data type mismatch'.
Thanks for your help.
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement