Page 1 of 1

Printing - Designer report - Script problem

Posted: 2006-09-25 21:15:15
by dku
Hello,

I'm trying to build a string with several field but one or the other could be empty. So, I've to chekc the length :

begin
Text := Length([MediaType]);
end


I add this code in the Memo script editor, it returns always 0.

I've also tried with :

begin
Text := Length('Test');
end

Always 0 ... Becoming crazy...

Any hint ? Length is not working ? Any other to check if a variable is empty ?

Thanks
Bye Didier

Posted: 2006-09-26 07:29:44
by antp
You can do
if [MediaType] <> '' then
// it is not empty

Posted: 2006-09-27 12:53:31
by dku
Thanks for the 'workaround', it works perfectly.