IsSelected  Large

Chapter 2: DataWindow Expression Functions

IsTime

Description

Reports whether the value of a string is a valid time value.

Syntax

IsTime ( timevalue )

Argument

Description

timevalue

A string whose value you want to test to determine whether it is a valid time

Returns

Boolean. Returns TRUE if timevalue is a valid time and FALSE if it is not.

Examples

Example 1

This expression returns TRUE:

IsTime("8:00:00 am")

Example 2

This expression returns FALSE:

IsTime("25:00")

Example 3

To pass this validation rule, the value in start_time must be a time:

IsTime(start_time)  

See also





Copyright © 2004. Sybase Inc. All rights reserved. Large

View this book as PDF