CMaskedEdit.SetTextmethod
Displays a prompt in the masked edit control.
Syntax
FUNCTION SetText (BYREF dwsText AS DWSTRING) AS BOOLEAN
FUNCTION SetText (BYREF dwsText AS DWSTRING, BYVAL bSetMaskedCharsOnly AS BOOLEAN) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
dwsText | Points to a string that will be used as a prompt. | |
bSetMaskedCharsOnly | Set the masked characters only, without the input mask. |
Description
Displays a prompt in the masked edit control.
Examples
pMskEd.EnableMask(" ddd ddd dddd", "(___) ___-____", "_") pMskEd.SetText("1231231212")
pMskEd.EnableMask(" ddd ddd dddd", "(___) ___-____", "_") pMskEd.SetText("(123) 123-1212"), TRUE
Reference
- Include file
CMaskedEdit.inc - Defined in AfxNova/CMaskedEdit.inc:1078
- Documented in Windows/Windows GUI/CMaskedEdit Class.md
- Topic: CMaskedEdit Class