Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Real – PB Docs 2019 – PowerBuilder Library

Real – PB Docs 2019

Real

PowerScript function

Description

Converts a string value to a real datatype or obtains a real value
that is stored in a blob.

Syntax

Argument

Description

stringorblob

The string whose value you want returned as a real value
or a blob in which the first value is the real value. The rest
of the contents of the blob is ignored. Stringorblob can also be
an Any variable containing a string or blob.

Return value

Real. Returns the value of stringorblob as a real. If stringorblob
is not a valid PowerScript number or is an incompatible datatype, Real
returns 0. If stringorblob is null, Real returns null.

Examples

This statement returns 24 as a real:

This statement returns the contents of the SingleLineEdit sle_Temp
as a real:

The following example, although of no practical value, illustrates
how to assign real values to a blob and how to use Real to extract those
values. The two BlobEdit statements store two real values in the blob, one
after the other. In the statements that use Real to extract the values,
you have to know where the beginning of each real value is. Specifying the
correct length in BlobMid is not important because the Real function knows
how many bytes to evaluate:

See also

Double

Integer

Long

Real method for DataWindows in the section called “Real” in DataWindow Reference.


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