Number – PB Docs 126

Number DataWindow expression function

Description

Converts a string to a number.

Syntax

Argument

Description

string

The string you want returned as a number

Return Values

A numeric datatype. Returns the contents of string as
a number. If string is not a valid number,
Number returns 0.

Examples

This expression converts the string 24 to a number:

This expression for a computed field tests whether
the value in the age column is greater than 55 and if so displays
N/A; otherwise, it displays the value in age:

This validation rule checks that the number the user
entered is between 25,000 and 50,000:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x