Difference between revisions of "VALIDTIME()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
|||
Line 32: | Line 32: | ||
[[Category:Date and Time Data]] | [[Category:Date and Time Data]] | ||
[[Category:Date and Time Data Functions]] | [[Category:Date and Time Data Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Revision as of 07:22, 10 December 2012
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
Lianja, Lianja Server