Localization: 4.5 International Formats: Filters for Formats

Up: GEOS SDK TechDocs | Up | Prev: 4.4 Dates and Times | Next: 5 Lexical Functions
LocalIsDateChar(), LocalIsTimeChar(), LocalIsNumChar()

The generic UI allows for filters on text objects to keep users from typing inappropriate characters. For example, if the user were expected to type in a number, the "~" character would be ignored as that isn't part of the number format. If you want to use generic text objects, you can give them hints to accept only characters from certain formats. If you want to use the filtering functions for your own purposes, they are available globally. When passed a character, these functions will tell whether the character is a legal part of a format. LocalIsDateChar() returns TRUE if the passed character is part of the short date format, DTF_SHORT. LocalIsTimeChar() returns TRUE when passed a number or time separator character. LocalIsNumChar() returns TRUE when passed a number character, a separator, or negative sign.


Up: GEOS SDK TechDocs | Up | Prev: 4.4 Dates and Times | Next: 5 Lexical Functions