Reference > TDBTime Control > TDBTime Control Properties > PromptChar Property (TDBTime) |
PromptChar Property (TDBTime)
The PromptChar property allows you to define an SBCS character to use as a prompt when inputting dates with the input mask set in the Format property,
control.PromptChar= string
Read/Write at run time and design time.
Underscore ("_") is the default
See the following example:
TDBDate.Format = "mm/dd/yyyy"
TDBDate.PromptChar = "*"
TDBDate.Value = Null
Debug.Print TDBDate.Text
'- Result
**/**/****
This property will not take any effect when the control allows free format entry, and also when the ShowLiterals property is set to either 1 - Post Display or 2 - Pre Display.
The PromptChar allows only one character to be set. If set to a zero-length string, a space will be automatically applied.
See Also