Time Data Type

I have this lines of code but cant co further: Error msg: The expression is time. There must be a TRUE/FALSE expression in the IF.

How do i sort out that error

Reserve - OnAfterGetRecord()
// **** IF Check Out Time is > 10:00 AM THEN Add one more day for DURATION Field.

IF Reserve.“Check Out Time” :> 10:00 THEN
Reserve.Duration += 1;
Reserve.MODIFY;
END:

Thanks

To compare a time var you can’t use 10:00, the way to represent 10:00 AM in NAV is 100000T :wink:

Another hint: I don’t know :>
Shouldn’t it be >= ??

Sure Joerg,

I didn’t read all the post !! :wink: