XbZ_DeRef()
Previous  Top  Next

XbZ_DeRef() - Get String from Pointer.

Syntax

XbZ_DeRef(<nPointer>) --> cString  

Parameters

<nPointer>  
<nPointer> is a pointer to a string, which is usually returned by a DLLCall() or DLLExecuteCall() function.  

Returns

This function returns the String value to which <nPointer> is pointing.  

Description

This function returns a string from <nPointer>. DLLCall() and DLLExecuteCall() automatically de-reference pointers that are returned. However, if pointer-to-pointers are returned, only the first level of indirection is resolved, and you get left with a pointer (which is seen in Xbase++ as a number). This function is the XBPPGDEREF() function from the file "PSQLSupp.obj" file and is simply mapped to XbZ_DeRef() with a #pragma directive!  

Example

QOut(XbZ_DeRef(ZLibVersion())) --> "1.2.1"