-
Notifications
You must be signed in to change notification settings - Fork 16
Mask
Fellippe Heitor edited this page Jan 13, 2018
·
4 revisions
The Mask array defines an input mask for Textbox controls. "0" is a placeholder for a digit. Any other characters are interpreted as literals.
Mask(TextBox1) = "000-0000"
The Textbox control won't accept more characters than the total number of placeholders.
The Text array holds the formatted output. Use the RawText$ method to read only the user input values.
a$ = Text(TextBox1) 'an example output using the mask above would be "555-7038"
b$ = RawText$(TextBox1) 'the sample output above would be returned as "5557038"