Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Custom datatypes

edited October 2004 in End User
Hello

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)

[we use RB 7.03 with D5]

Thanks!

Bye
Nicola

Comments

  • edited October 2004

    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
  • edited October 2004
    Thanks!

This discussion has been closed.