ConvertAlternativeFormat()

Previous Next

Enables a field to accept a variety of input, while maintaining a consistent presentation. Using more than one parameter, you can make the field accept different input formats.

You can call this method from a column's Adjust Change property.

Syntax

ConvertAlternativeFormat(<format> [,<format> ...]])

Parameters

format

The format(s) to be accepted.

Examples

ConvertAlternativeFormat('DDMMYY','MMDDYY','DDMM','MONDD')

The field will now accept 160100, 16 01 00, 011600, 1601, or JAN16, all of which are converted to 16-JAN-2000 when the cursor leaves the field (assuming that the system year is 2000).

NOTE:

This method is supported for backward compatibility only. Use the Alternative Input Format property instead.