NewString

PowerBuilder Native Interface

IPB_Session interface:

NewString method

Description

Creates a new string.

Syntax

NewString(LPCTSTR)

Return Values

pbstring.

Examples

pbclass cls;

cls = session->GetSystemFunctionsClass();
if( cls == NULL )
{
   ret_val = session->NewString("null");
   return ret_val;
}

Usage

The returned string is destroyed when PopLocalFrame is called.

See Also