ComponentOne True DBInput Pro 8.0
PromptChar Property (TDBMask)

 

Reference> TDBMask Control> TDBMask Control Properties> PromptChar Property (TDBMask)

PromptChar Property (TDBMask)

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,

Syntax

control.PromptChar= string

Read/Write at run time and design time.

Values

Underscore ("_") is the default

Remarks

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

Format Property (TDBDate)

Format Property (TDBMask)

Format Property (TDBTime)

ShowLiterals Property (TDBMask)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback