Well, I'm completely new to DWScript. At the moment, I am passionate about my abilities, but although I read all the pages in the accompanying wiki and questions / answers here, I still can not find a way to extract the result after calling the function from Delphi as follows:
func := m_dwsExec.info.Func[funcname]; func.call(params);
and then I'm stuck: exec.result.toString gives nothing. So far, I see that there Result no Result in the exec object, and therefore, when clearing elements from the script stack, the result is deleted and lost. Please advise me how to perform this simple task correctly?
source share