ComponentOne True DBInput Pro 8.0
AutoConvert Property (TDBText)

 

Reference> TDBText Control> TDBText Control Properties> AutoConvert Property (TDBText)

AutoConvert Property (TDBText)

Sets/returns whether to automatically convert the entered characters according to the input mask.

Syntax

control.AutoConvert= boolean

Read/Write at run time and design time.

Remarks

If setting the AutoConvert property to True, all convertible characters will be automatically converted accordingly to the input mask. For example, if set the input mask to  "A", by hitting a lower case character the control automatically converts the character into an upper case.

If setting the AutoConvert property to False, no conversion will be processed.

If SBCS is entered in a DBCS mask input, the entered character will be automatically converted to DBCS. Also a DBCS space will be automatically converted to a SBCS space when the control allows only SBCS.

The settings of this property will take effect in the drop-down edit window.

The sequence logic for the AutoConvert property is as follows:

First convert from Upper/Lower to Lower/Upper.

If it cannot be converted, then convert from DBCS/SBCS to SBCS/DBCS.

If it still cannot be converted, then convert from:

DBCSUpper/DBCSLower/SBCSUpper/SBCSLower to

SBCSLower/SBCSUpper/DBCSLower/DBCSUpper.

The SBCSKatakana, DBCSKatakana and Hiragana are converted as:

SBCSKatakana, DBCSKatakana, Hiragana

DBCSKatakana, SBCSKatakana, Hiragana

Hiragana, DBCSKatakana, SBCSKatakana

See Also

Format Property (TDBMask)

Format Property (TDBTime)

 

 


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

Product Support Forum  |  Documentation Feedback