How to call a Method in a String at Runtime?

I would like to call a Method, which is entered by the user into a string at runtime.
Looks like this:
MyStr := ‘ShowMessage(’‘Hello’’)’;
Execute (MyStr);

How can this be achieved?
Greetings klaus

What platform?

PascalScript in a Delphi Application

I don’t think we currently have an “eval” function like that. You can get and execute functions by name, but there’s no outside eval parser.

Fine, do you know an example somewhere?

there’s an

function ExecuteFunction(const Params: array of Variant; const ProcName: tbtstring): Variant;

you can use (uPSComponent).

Thank you!