-
Notifications
You must be signed in to change notification settings - Fork 4
Mask
Samuel Gomes edited this page Feb 12, 2024
·
2 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"