The lookup_var function updates the contents of a token variable. Before using the contents of module_var, you must call the lookup_var function.
Syntax
lookup_var(PMODULE_VAR module_var)
The lookup_var syntax has these parameters:
Parameter | Description |
PMODULE_VAR module_var | Required. Pointer to a token variable to update. |
Example
MODULE_VAR gs_var = {VOR1_GS_FLAG};
voidupdate_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
}