ExecuteStaticMethod is the entry point for the TScript. It enables the native C++ code to call the static method within the TScript source.

unsigned int ExecuteStaticMethod(
   const char* methodName = NULL,
   TVariable *inputList = NULL,
   unsigned short inputList_l = 0,
   TVariable *outputList = NULL,
   unsigned short outputList_l = 0,
   TVariable *errorVariable = NULL


methodNamethe name of the static method used to call the sript, if NULL then the default script static method of "main" will be called.
inputListan array of TVariables that have the input method parameters.
inputList_lthe length of input parameters.
outputListan array of TVariables in which the returning results of the successful method will be stored.
outputList_lthe length of output parameters.
errorVariableif the script generated and error, the error will be copied to this TVariable.

Return Values

If the method succeeds, the return value is zero else see error codes for more details.


Example Use
  • C++
#include "TScript.h"

int wmain(int argc, wchar_t* argv[])
   char16_t *message;
   CTScript script();
         message = u"Unknown script error";

Also See

GetParameter, SetParameter
Listen All
Comments (0)
Characters left: 2500

Contact Ekky

Thanks for your interest.

Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript