` Printed Icetips Article

Icetips Article



Par2: Distinguishing Midnight from no time entered
1998-11-11 -- Richard Taylor
 
>But if using @t1 as a picture then midnight is displayed as 0:00
>which using @t1b will display as 

>How can I differentiate between 0:00 (midnight) and 0:00 (no time
>entered)?

You could make the picture conditional, based on whether there was any value
in the field, like this:

IF TimeField                    !Is there any value in the field at all?
    ?TimeField{PROP:Text} = '@t1'    !If so, display it
ELSE
    ?TimeField{PROP:Text} = '@t1B'    !but blank an empty field
END

This way the field will display blank for no time and 0:00 for midnight.



Printed May 6, 2024, 11:32 am
This article has been viewed/printed 35110 times.