ejSetVar | GoAhead JavaScript API | GoAhead EMF |
Set the value of a JavaScript variable
#include "ej.h" void ejSetVar(int eid, char_t *variable, char_t *value);
eid | JavaScript interpreter handle |
variable | Name of the JavaScript variable |
value | Value to set |
The ejSetVar procedure defines the current value of the JavaScript variable. All JavaScript variables are stored as strings.
None
ejSetVar(eid, "name", "John Smith");