SetToNull

PowerBuilder Native Interface

IPB_Value interface:

SetToNull method

Description

Sets the data contained in the IPB_Value instance to null so the data can be reset.

Syntax

SetToNull( )

Return Values

PBXRESULT. If the value is a read-only argument, the error PBX_E_READONLY_ARGS is returned.

Examples

This example shows the use of SetToNull when a null blob value is returned:

case pbvalue_blob:
   pStr=(LPCTSTR)Session-> GetBlob(retVal.blob_val);
   if (strncmp(pStr, "null", 4)==0 )
      ci->returnValue->SetToNull();
   else
      ci->returnValue->SetBlob(retVal.blob_val);
    break;
...

See Also