« The name of this class conflicts with the name of another class | Main | Powerpoint to Flash »

December 21, 2004

DataBinding and Date/Number Formatting in FMX2004

XPInternational is for xenophobes as well!!

One particularly happy camper suggested we should make it clear to people that XPInternational is actually a generic Date/Number formatting system that installs in to FMX2004 professional as a native formatter supporting the DataBinding API. He was not interested in the internationalization aspect but wanted a more flexible number formatter to use in a DataGrid.

After installation you will find that when using the Bindings tab of the Component Inspector there are two extra options under the format property XPDateFormatter and XPNumberFormatter.

For those of you familiar with Java, the XP Date/Number Formatters use the same syntax as do the Java DateFormat and NumericFormat classes.

We have optimized the formatters for use with the current DataBinding API, as for some reason currently Flash will recreate a formatter every time a value changes for a field, which can be often if it is bound to say a spinner, so we provided our own built in formatter cache to get round this issue and maintain high performance and a low memory footprint.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)