SftMask/OCX 6.5

Built-In Formatting

Softel vdm, Inc.

Fields defined in a Masked Edit control are automatically formatted based on the defined Mask property.

The FormattedText property can be used to override the default contents while the control does not have the input focus. The text of the FormattedText property can be defined by the application. As soon as the Masked Edit control loses the input focus, the text defined by the FormattedText property is displayed. If the FormattedText property is set to an empty string or whenever the mouse cursor moves over the edit control, the formatted text based on the Mask property is displayed instead.

An application can also use SftMask's formatting capabilities to display information:

 

Calculator.FormatNumber

Formats a number and returns a string

Calculator.FormatCurrency 

Formats a number as a currency value and returns a string.

Calendar.FormatDate 

Formats a date value and returns a string.

Calendar.FormatTime 

Formats a time value and returns a string.

Calendar.GetDateInfo 

Converts a date into its components.

Calendar.GetTimeInfo 

Converts a time into its components.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com