ejGetVarGoAhead JavaScript APIGoAhead EMF

Synopsis

Get the value of a JavaScript variable

Prototype

#include "ej.h"

char_t* ejGetVar(int eid, char_t *variable);

Parameters

eid JavaScript interpreter handle
variable Name of JavaScript variable

Description

The ejGetVar procedure returns the current value of the JavaScript variable.

.

Return Value

Returns a pointer to the current value. Returns NULL if the variable does not exist.

Example

ejGetVar(eid);

See Also

JavaScriptActive Server PagesejSetVarejEval