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

Syntax 2: For converting strings and blobs – PB Docs 2019 – PowerBuilder Library

Syntax 2: For converting strings and blobs – PB Docs 2019

Syntax 2: For converting strings and blobs

Description

Converts a string whose value is a number into a long or obtains a
long value stored in a blob.

Syntax

Argument

Description

stringorblob

The string you want returned as a long or a blob in
which the first value is the long 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

Long.

Returns the value of stringorblob as a long if it succeeds and 0
if stringorblob is not a valid PowerScript number or if it is an
incompatible datatype. If stringorblob is null, Long returns
null.

Usage

To distinguish between a string whose value is the number 0 and a
string whose value is not a number, use the IsNumber function before
calling the Long function.

Examples

This statement returns 2167899876 as a long:

After assigning blob data from the database to lb_blob, the
following example obtains the long value stored at position 20 in the
blob:

For an example of assigning and extracting values from a blob, see
Real.

See also

Dec

Double

Integer

LongLong

Real

Long method for DataWindows in the section called “Long” 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