Page 1 of 1

Change the text of Text object

Posted: Thu Apr 19, 2007 2:12 pm
by isoft
Hi.
I need to do the following: On the report if the date of birth is 01.01.1900 in the Text component (the date of birth is taken from the database), then I need to change the text of that Text component instead of 01.01.1900 to be an empty string. How can I do taht and is it possible?
I tried to write something in the GetValue event of the Text component, but it doesn't work. I wrote something like this:
if (Text10.Text == "01.01.1900")
Text10.Text = ""

Any help would be great.

Thanks!
Ivan

Change the text of Text object

Posted: Thu Apr 19, 2007 2:25 pm
by Vital
Please use following code in GetValue event:

Code: Select all

if (e.Value == "01.01.1900")e.Value = "";

Thank you.

Change the text of Text object

Posted: Thu Apr 19, 2007 3:47 pm
by isoft
Thanks very much for Your help! It works great!