TVal (Magic xpi 4.14)
Converts a time value stored as an Alpha character string to a time value, according to a picture.
Syntax:
|
TVal(Alpha string, Alpha picture)
|
Parameters:
|
string: An Alpha string that can be interpreted as a time value (for example, '02:30:00 PM').
picture: The format for the string in which the time is stored. This parameter helps Magic xpi read and interpret the character Alpha string. For a full description, see Picture Formats.
|
Returns:
|
Time value.
|
Example:
|
TVal('02:30:00 PM','HH:MM:SS PM') returns 14:30:00.
|
Note:
|
A blank picture interprets the string as 'HH:MM:SS'.
|
See also:
|
DStr, DVal, TStr
|