contents   index   previous   next



THE RETURN

 

You return a value by using the standard ScriptEase API calls sePutNumber, sePutString, and so forth. The object/member pair to put to is SE.RETURN,SE.VALUE. See Chapter V for a thorough discussion of using SE.RETURN. For the simple case, you just put a value to SE.RETURN,SE.VALUE. For instance, your wrapper function could return the number 10 via:

se.sePutNumber(SE.RETURN,SE.VALUE, 10);

 

If you return nothing, by default the undefined value is returned. For constructor functions, the pre-constructed object is returned in this case.


WRAPPER TABLES