IsTime PowerScript function
Description
Reports whether the value of a string is a valid time value.
Syntax
|
1 |
<span>IsTime</span> ( <span>timevalue</span> <span></span>) |
|
Argument |
Description |
|---|---|
|
timevalue |
A string whose value you want to test |
Return Values
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 |
<span>IsTime</span>("8:00:00 am") |
This statement returns false:
|
1 |
<span>IsTime</span>("25:00") |
If the SingleLineEdit sle_EndTime contains
4:15 these statements store 04:15:00 in lt_QuitTime:
|
1 |
Time lt_QuitTime |
|
1 |
IF <span>IsTime</span> sle_EndTime.Text) THEN |
|
1 |
lt_QuitTime = Time(sle_EndTime.Text) |
|
1 |
END IF |
See Also
-
IsTime method for DataWindows
in the DataWindow Reference or the online Help
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest