Syntax 1: For combining integers
Description
Combines two unsigned integers into a long value.
Syntax
|
1 |
Long ( lowword, highword ) |
|
Argument |
Description |
|---|---|
|
lowword |
An UnsignedInteger to be the low word in the long |
|
highword |
An UnsignedInteger to be the high word in the |
Return value
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 2 3 4 5 6 7 8 |
UnsignedInt nLow // Low integer 16 bits UnsignedInt nHigh // High integer 16 bits long LValue // Long value 32 bits nLow = 12345 nHigh = 0 LValue = Long(nLow, nHigh) MessageBox("Long Value", Lvalue) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest