GetStringLength

PowerBuilder Native Interface

IPB_Session interface:

GetStringLength method

Description

Returns the length of a string in bytes without the terminator.

Syntax

GetStringLength (pbstring string)

Argument

Description

string

The pbstring whose length is to be determined

Return Values

pblong.

Examples

These statements set the value of a pblong variable to the length of a string:

pblong long_val;
pbstring str_val;
long_val = session-> GetStringLength( str_val );

See Also