version 2003
PA_Dial4DRestoreVariables (dialog; dialEnvironment)
Parameter | Type | Description | |
dialog | PA_Dial4D | Dialog reference | |
dialEnvironment | void* | Pointer to the variable context |
Description
The routine PA_Dial4DRestoreVariables restore the dialog variable context.
Dialogs use their own variable context. If you want to access the current process variables, you must switch from dialog variables to current process variables. This is done using PA_Dial4DRestoreVariables. Once the process variables have been accessed, the plug-in MUST counter balance the previous call to PA_Dial4DRestoreVariables by a call to PA_Dial4DRestoreVariables (passing it the value returned by PA_Dial4DRestoreVariables) to switch back from process variables to dialog variables.
Example
Sample use of the two routines :
char *toDialogContext; PA_Variable var; toDialogContext = (char *) PA_Dial4DSaveVariables(); /* . . . access process variables . . . */ var = PA_GetVariable( "aVariable" ); PA_Dial4DRestoreVariables( toDialogContext );
See Also
Error Handling
None.