yes... but I would do it like this.

$hour = val(LTrim(SubStr(@TIME, 1, 2)))

Which of course does the same thing, but in my mind, I expect hour to be a number, so I convert it first.

6 of one...
_________________________
How to ask questions the smart way <-----------> Before you ask