DeleteVariable, DeleteVariables, Enable_Interrupt_InScript, ExistConst, ExistProc, ExistVariable, RegisterConst, RegisterProc, ShowVars, UnregisterProc, VariablesUpdate
Description
DeleteVariable(
char *Name
);This function deletes a variable of the specified name.
Description
DeleteVariables(
char *Name
);Deletes variables whose name starts with the given Name.
Description
Enable_Interrupt_InScript(
int Enabled
);This function sets behavior of a macro while it is paused by the user.
0 = macro cannot be interrupted, 1 = interruption is enabled, but it is not possible to use the user interface while paused, 2 = interruption is enabled and it is possible to use the user interface (toolbar, menu commands, hotkeys).
See Also
Int_GetEvents
Description
ExistConst(
char *ProcName
);This function checks if the constant (procedure) exists.
Description
int ExistProc(
char *Name
);Checks if a function of the given name exists.
if(ExistProc("_InputSetup") == TRUE)
WaitText(0, "Function _InputSetup exists");
else
WaitText(0, "Function _InputSetup does not exist");See Also
ExistVariable
Description
ExistVariable(
char *Name
);This function checks if a variable of the given name exists.
//ExistVariable example - tests if variable and/or procedure exists.
char name[256],caption[256];
int res,qw;
strcpy(caption,"API Example - ExistVariable, ExistProc functions");
Int_CreateTextWindow(caption,0,RGB(0,0,128),RGB_WHITE,100);
again:
qw=Int_Question("LIM API Example","Which test?","&Variables","&Procedures","&Exit","",1,0);
if(qw==1)
{
Int_GetString("API Example","Choose name of the variable for test:",name,32);
if(strlen(name) == 0) res = FALSE;
else res = ExistVariable(name);
if(res==TRUE)
Int_Question("API Example","Varible exists.","OK","","","",1,0);
else
Int_Question("API Example","Varible does not exist.","OK","","","",1,0);
}
if(qw==2)
{
Int_GetString("API Example","Choose name of the procedure for test:",name,32);
res = ExistProc(name);
if(res==TRUE)
Int_Question("API Example","Procedure exists.","OK","","","",1,0);
else
Int_Question("API Example","Procedure does not exist.","OK","","","",1,0);
}
if(qw==3)
goto end;
goto again;
end:
Int_CloseTextWindow();See Also
ExistProc
Description
int RegisterConst( char *Name, char *value);
This function registers a numeric value as a named constant. You can then use the Name as a synonym for the declared value.
Note
This function registers constant dynamically when called. Command RegisterConst("TRUE (1)","1"); is equivalent to #define TRUE (1) 1.
Description
int RegisterProc( char *module, intret_type, intret_ind, char *ProcName, int *params, int *indirections, char *parnames);
This function registers the procedure dynamically when called.
Parameters
Note
This function registers procedure dynamically when called.
See Also
UnregisterProc
Description
ShowVars( char *Name, intstatus);
This function shows the list of variables and their values.
Parameters
// ShowVars example - shows the selected type of variables.
int qw;
Int_CreateTextWindow("API Example - ShowVars function.",0,RGB(0,0,255),RGB_WHITE,100);
qw = Int_Question("API Example","Display variables:","Global","Local","Constants","",1,0);
if(qw == 1)
ShowVars("",1);
if(qw == 2)
ShowVars("",2);
if(qw == 3)
ShowVars("",3);
Int_CloseTextWindow();Description
UnregisterProc(
char *ProcName
);This function unregisters a procedure dynamically when called.
See Also
RegisterProc