The DataFunctions component implements the IDataFunctions interface. This interface supports a group of methods that perform locale-based data type conversions. For example, the IDataFunctions methods convert string values to data types that can be properly inserted into a database or passed in an OrderForm to the order processing pipeline (OPP). In addition, the IDataFunctions interface supports methods that can convert native data types, such as DATE, long, and double, to string VARIANTs.
The IDataFunctions interface supports the following methods.
Method | Description |
---|---|
CleanString | Processes a string, stripping out white spaces, modifying the case of the string, and validating that the length of the string falls within a given range. |
ConvertDateString | Converts a string representation of the date to a DATE VARIANT, based on the specified locale. |
ConvertDateTimeString | Converts a string representation of the date/time to a DATE VARIANT, based on the specified locale. |
ConvertFloatString | Converts a string representation of a number to a double VARIANT, based on the specified locale. |
ConvertMoneyString | Converts a string representation of a monetary value to a currency VARIANT, based on the specified locale. |
ConvertNumberString | Converts a string representation of a number to a long VARIANT, based on the specified locale. |
ConvertTimeString | Converts a string representation of the time to a DATE VARIANT, based on the specified locale. |
Date | Converts a DATE VARIANT to a BSTR VARIANT, based on the specified locale. |
DateTime | Converts a DATE VARIANT to a BSTR VARIANT, based on the specified locale. |
Float | Converts a double to a BSTR VARIANT, based on the specified locale. |
GetLocaleInfo | Returns information on the specified locale in a BSTR VARIANT. |
GetLocaleList | Returns an ISimpleList interface pointer on a SimpleList that contains the locale available on the system. |
Money | Converts a currency value to a BSTR VARIANT, based on the specified locale. |
Number | Converts a long integer to a BSTR VARIANT, based on the specified locale. |
Time | Converts a DATE VARIANT to a BSTR VARIANT, based on the specified locale. |
ValidateDateTime | Verifies that the specified DATE VARIANT falls within the specified range. |
ValidateFloat | Verifies that the specified double falls within a provided range. |
ValidateNumber | Verifies that the specified long integer falls within the given range. |