Is it possible in a end-user app to define custom datatypes, or change the existing ones behaviour? For example we would like to change the dtBoolean implementation (we use S/N instead of T/F)
1. Use the DisplayFormat property to control the display. For the DisplayFormat you can specify S;N.
2. Override the default formating by descending from TppDisplayFormat (see ppDisplayFormat.pas) and registering your TmyDisplayFormat class as the replacement. See the initialization section of the unit.
-- Nard Moseley Digital Metaphors Corporation www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Comments
If the database field is boolean you can either
1. Use the DisplayFormat property to control the display. For the
DisplayFormat you can specify S;N.
2. Override the default formating by descending from TppDisplayFormat (see
ppDisplayFormat.pas) and registering your TmyDisplayFormat class as the
replacement. See the initialization section of the unit.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com