functions `Param`, `ParamStr` and `ParamCount` not visible for the script

Issue #175 resolved
Former user created an issue

While debugging I noticed that the procedure TdwsConfiguration.InitSystemTable is executed. This procedure defines the symbols Param, ParamStr and ParamCount among others:

   // Runtime parameters
   if sysTable.TypeVariant<>nil then
      TParamFunc.Create(sysTable, 'Param', ['Index', SYS_INTEGER], SYS_VARIANT, []);
   TParamStrFunc.Create(sysTable, 'ParamStr', ['Index', SYS_INTEGER], SYS_STRING, []);
   TParamCountFunc.Create(sysTable, 'ParamCount', [], SYS_INTEGER, []);

Is it somehow possible to not define these symbols?

In my use case, these three functions must not be available in the script.

Comments (1)

  1. Eric Grange repo owner

    These do not map to the executable’s environment, but to do the parameters passed to the ExecuteParam method of an IdwsExecution (and are stored in the Parameters property of the underlying TdwsProgramExecution)

  2. Log in to comment