Syntax 1 For combining integers
Description
Combines two unsigned integers into a long value.
Syntax
|
1 |
<span>Long</span> ( <span>lowword</span>, <span>highword</span> ) |
|
Argument |
Description |
|---|---|
|
lowword |
An UnsignedInteger to be the low word |
|
highword |
An UnsignedInteger to be the high word |
Return Values
Long. Returns the long if it succeeds
and -1 if an error occurs. If any argument’s value is null, Long returns null.
Usage
Use Long for passing values to external
C functions or specifying a value for the LongParm property of PowerBuilder’s
Message object.
Examples
These statements convert the UnsignedIntegers nLow and nHigh into
a long value:
|
1 |
UnsignedInt nLow // Low integer 16 bits |
|
1 |
UnsignedInt nHigh // High integer 16 bits |
|
1 |
long LValue // Long value 32 bits |
|
1 |
|
1 |
nLow = 12345 |
|
1 |
nHigh = 0 |
|
1 |
LValue = <span>Long</span>(nLow, nHigh) |
|
1 |
MessageBox("Long Value", Lvalue) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest