Difference between revisions of "VALIDTIME()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) (→Products) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to check the validity of a time-string | Function to check the validity of a time-string | ||
Line 15: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[ | + | [[AMPM()]], [[DAYS()]], [[ELAPTIME()]], [[HOURS()]], [[MINUTES()]], [[SECONDS()]], [[SECS()]], [[TIME()]], [[TSTRING()]] |
Line 26: | Line 19: | ||
store "00:00" to m_time | store "00:00" to m_time | ||
@5,5 get m_time picture "99:99"; | @5,5 get m_time picture "99:99"; | ||
− | valid validtime(m->m_time+":00"); | + | valid validtime(m->m_time+":00"); |
− | error "Invalid time. Press any key."; | + | error "Invalid time. Press any key."; |
− | help "Enter the start time." | + | help "Enter the start time." |
read | read | ||
</code> | </code> | ||
Line 34: | Line 27: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital, Recital Server |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Date and Time Data]] | ||
+ | [[Category:Date and Time Data Functions]] |
Latest revision as of 16:52, 8 December 2009
Purpose
Function to check the validity of a time-string
Syntax
VALIDTIME(<time-string>)
See Also
AMPM(), DAYS(), ELAPTIME(), HOURS(), MINUTES(), SECONDS(), SECS(), TIME(), TSTRING()
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, Recital Server