How to show string as *** character

Hello,

I am having string tag as password.

I have attached this tag to text field, I need to show this string as ******* characters

Please help.

Thanks

  • One way to accomplish this is to create a cicode form (pop-up) using FormNew() and define a password prompt with FormSecurePassword(). This returns a secured (encrypted) password to be used by Citect's secure user functions like UserLogin or UserPassword.
    If you want to retrieve a plain-text password but want to show stars or dots on screen, then you could place a custom activex control (Windows Listbox) on a graphics page and set the PaswordChar property.
  • Hi,

    You could use the cicode function strFill in the string expression, eg :

    StrFill("*",Strlength(StringTagAsPassword))

    or if you want to display a fixed number of *:

    StrFill("*",10)
  • Hello,
    I need more information regarding Microsoft Forms 2.0 TextBox Properties.
    1.I am having "Pass" as string tag
    2.I added Text Box on page
    Which property I need to use to show *
    I am using "PasswordChar" property but it needs tag.any other properties need to.change?
    So how to use it.
    Thanks.
  • You can read/write all the properties of the TextBox control that are showing in the Graphics Builder from cicode using the functions _ObjectGetProperty() or _ObjectSetProperty().
    You might have a look at the Citect Help or the Example project on how to use these functions.