lookup_var
The lookup_var function updates the contents of a token variable.
Syntax
void lookup_var(
PMODULE_VAR module_var
);
Members
Parameters | Description |
---|---|
module_var |
Pointer to a MODULE_VAR structure, containing the token variable to update. |
Return Values
This function does not return a value.
Example
MODULE_VAR gs_var = {VOR1_GS_FLAG};
Void update_routine()
{
lookup_var(&gs_var);
if(gs_var.var_value.n == 0)
{
HIDE_IMAGE((&gs_slider));
HIDE_IMAGE((&gs_background));
}
else
{
SHOW_IMAGE((&gs_slider));
SHOW_IMAGE((&gs_background));
}
'Include other update code
}
Remarks
Before using the contents of a module variable, you must call the lookup_var
function.
See Also