NULL values doesnt seem to be handled correctly
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com