IsTime
PowerScript function
Description
Reports whether the value of a string is a valid time value.
Syntax
|
1 |
IsTime ( timevalue ) |
|
Argument |
Description |
|---|---|
|
timevalue |
A string whose value you want to test to determine |
Return value
Boolean.
Returns true if timevalue is a valid time and false if it is not. If
timevalue is null, IsTime returns null.
Usage
Use IsTime to test to whether a value a user enters in an edit
control is a valid time.
To convert a string to an time value, use the Time function.
Examples
This statement returns true:
|
1 |
IsTime("8:00:00 am") |
This statement returns false:
|
1 |
IsTime("25:00") |
If the SingleLineEdit sle_EndTime contains 4:15 these statements
store 04:15:00 in lt_QuitTime:
|
1 2 3 4 |
Time lt_QuitTime IF IsTime sle_EndTime.Text) THEN lt_QuitTime = Time(sle_EndTime.Text) END IF |
See also
IsTime method for DataWindows in the section called “IsTime” in DataWindow Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest