If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
-
dku
- Posts: 6
- Joined: 2006-09-25 21:12:12
Post
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
-
antp
- Site Admin
- Posts: 9660
- Joined: 2002-05-30 10:13:07
- Location: Brussels
-
Contact:
Post
by antp »
You can do
if [MediaType] <> '' then
// it is not empty
-
dku
- Posts: 6
- Joined: 2006-09-25 21:12:12
Post
by dku »
Thanks for the 'workaround', it works perfectly.