|stdDataFormat Object (VB6)|
The stdDataFormat object sits silently between the Binding object and the data consumer control. Data coming into the Binding object is reformatted by the stdDataFormat object and made ready for display in the consumer control. Data changed by the user that the Binding object is returning to the database is automatically unformatted as it leaves the data consumer control.
The formatting applied to the data is based on the properties you have set for the particular format object. In the case of complex formatting, you may also be required to unformat the data manually before processing by the database. In all cases, you should set the Type property, which tells the format object which format you require; optionally, you can provide a property value for one or more of the special format properties.
Only one format object can be applied to a Binding object, but there is no limit on how many different format objects your application can contain. If you use multiple format objects, you should contain them within the stdDataFormats collection object and simply pass a reference to the object in the collection to the Binding object. This prevents you from having many stdDataFormat objects all live at the same time. The drawback to this approach, though, is that the collection object stifles the format object's Format and Unformat events, which are vital for custom formatting.
If the purpose of the format object is incompatible with the control being ...