Function _conGetMemvar() Foundation
Assign the value of an Xbase++ memvar to a container.
ContainerHandle _conGetMemvar(CHAR *name,
ContainerHandle chDest);
This function returns the handle of a container holding the value of the requested memvar.
The function _conGetMemvar() is used to assign the value of an Xbase++ memvar to a container.
#include <windows.h>
#include "xppdef.h"
#include "xpppar.h"
#include "xppcon.h"
XPPRET XPPENTRY MyCAPIFunction(XppParamList paramList)
{ /* Declare and initialize variables */
ContainerHandle chValueA = _conGetMemvar( "VALUEA", NULLCONTAINER );
ContainerHandle chValueB = _conGetMemvar( "VALUEB", NULLCONTAINER );
/* Now swap values. */
_conSetMemvar( "VALUEA", chValueB );
_conSetMemvar( "VALUEB", chValueA );
/* Release containers. */
_conRelease( chValueA );
_conRelease( chValueB );
}
/* Xbase++ code */
PROCEDURE Main
PUBLIC ValueA := 1
PUBLIC ValueB := 2
CLS
? ValueA, ValueB
MyCAPIFunction()
? ValueA, ValueB
RETURN
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.