Byte datatype support

PowerBuilder 10.5 adds support for the Byte datatype. The Byte datatype is the same as the Uint datatype except that it has a more restricted range: from 0 to 255. For interaction with Java components or Web services, the PowerScript Byte datatype maps directly to Byte datatypes in the Java and C# or .NET languages.

PowerBuilder 10.5 also adds the following functions for working with Byte datatypes:

Function

Description

Byte (stringorblob)

Converts a numeric datatype, including a string whose value is a number, into a Byte datatype, or obtains a Byte value stored in a blob

GetByte (blobvariable, n, b)

Extracts data of type Byte from a blob variable

SetByte (blobvariable, n, b)

Sets data of type Byte for a blob variable

For more information, see Byte, GetByte, and SetByte in the PowerScript Reference or the online Help.