
TScript::AddMethod
TScript::AddMethod allows a source string to be added during execution of another tscript.
public TScript::AddMethod( WString soucreString, WString className = null );
Parameters
soucreString | The string that contains the new code to be applied. |
className | The class name for which this code should be named in. If null then the method will be default static. |
Return Values
The error.errorCode value will be set to the underlining windows error message code and the error.errorString will have a detailed description of the error.
Remarks
Example Use
TScript::AddDefinedVariable(L"My"); TScript::AddMethod(L"static Method(WString message: Integer results){" L"System::MessageBox(message:results);" L"}",L"My"); My::Method(L"This is the Message");
Requirements
TScript Version: 1.4
Also See
TScript::AddDefinedVariableComments (0)Listen All