Number
DataWindow expression function
Description
Converts a string to a number.
Syntax
|
1 |
Number ( string ) |
|
Argument |
Description |
|---|---|
|
string |
The string you want returned as a |
Return value
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:
|
1 |
Number("24") |
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:
|
1 |
If(Number(age) > 55, "N/A", age) |
This validation rule checks that the number the user entered is
between 25,000 and 50,000:
|
1 |
Number(GetText())>25000 AND Number (GetText())<50000 |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest