VALIDTIME()

From Recital Documentation Wiki
Revision as of 14:32, 20 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

VALIDTIME()

Class

Date and Time Data


Purpose

Function to check the validity of a time-string


Syntax

VALIDTIME(<time-string>)


See Also

TIME(), SECS(), TSTRING(), DAYS(), ELAPTIME(), HOURS(), MINUTES(), SECONDS(), AMPM()


Description

The VALIDTIME() function the validity of the specified <time-string>. A valid <time-string> must be in a 24 hour "HH:MM:SS" format. The VALIDTIME() function returns .T. for a valid time-string and .F. otherwise.


Example

store "00:00" to m_time
@5,5 get m_time picture "99:99";
valid validtime(m->m_time+":00");
error "Invalid time.  Press any key.";
help "Enter the start time."
read


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer