>>Have you been in the military? First of all, your function does not work with real military time. Military time is NOT expressed as 13:30.... its expressed as 1330 hours. 2400 hours is midnight only and 0001 is 1 minute after midnight. Plugging these values into your function does not return the correct value. If you want it to be capable of handling the ':', you need to do some reworking.
>
>In the sample Jay showed there was : between values. If we use 1330 or 2400 without : then just two first statements have to be modified and : should be added.
>
>How 0101 is handled? Do we always have 0s?
>
>E.g.
>
>lparameters tcTime
> if ':' $ m.tcTime
> * proceed with GetWordNum
> else
> * assuming 0 in front - if not, needs a bit more processing
> lnHours = int(val(left(m.tcTime,2))
> lcMins = right(m.tcTime,2)
> endif
>
>* The rest of the logic should carry on, don't forget to add :
>
yep, military time is expressed from 0001 - 2400. 0101 is 1:01 am.... Always zeros and always 4 digits without the colon.