Entering Time Values

new topic     » topic index » view thread      » older message » newer message

At 09:58 AM 5/24/98 -0400, you wrote:
>...if I am referencing the sequence, I don't know whether the user
>has entered 8:15, 20:15, or 08:15.  I don't know what my first two
>elements will be.
>Of course, I can force the user to enter hh:mm, but I want to
>make my program as...well, easy as possible.

sequence tyme  -- can't use the word 'time' as a var.
tyme = gets(0)
if find(':',tyme) = 2 then tyme = '0' & tyme -- look for colon position
end if
puts(1,tyme)

Regards,
Irv

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu