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

NULL values doesnt seem to be handled correctly

edited February 2004 in General
Hi there,

I think there's actually a problem with NULL values, RB7 or not.
The big deal is that the onGetText messes everything if there's a NULL
value.

example :

I use to setup global funtions so I don't have to rewrite the same code
in all my fields.
Well, let's call this function WhatToPrintOnAValue(content :
string):string;

then in a OnGetText, I put a simple text := WhatToPrintOnAValue(text);
I do this in all the fields I want to process.

Everything goes well till a NULL value appears.
When a NULL value appears in one of the fields, all fields takes the
same value.

This is a real pain since it forces us to rewrite code and generate
redundancy

any help appreciated ///

best regards to all,

Etienne

Comments

  • edited February 2004
    Etienne,

    Which object are you using to display your text fields? What exactly is
    happening inside your global functions, and how are they set up to handle a
    Null value? Remember that the OnGetText event will fire many times for each
    record so this could be affecting something.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.