Function _conGetMemvar() Foundation

Assign the value of an Xbase++ memvar to a container.

Syntax
ContainerHandle _conGetMemvar(CHAR *name,
                              ContainerHandle chDest);
Parameters
CHAR* name
The character pointer name contains the name of the Xbase++ memvar.
ContainerHandle chDest
Handle of a container that will contain the value of the Xbase++ memvar. If NULLCONTAINER is passed, a new container will be created.
Return

This function returns the handle of a container holding the value of the requested memvar.

Description

The function _conGetMemvar() is used to assign the value of an Xbase++ memvar to a container.

Examples
#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 
Feedback

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.