Hi Necip,
Unlike Delphi, the DelphiScript language does not require strong typing. All available methods and properties are fetched via the IDispatch interface and you do not need to specify the type of an object to work with it.
So, this should work for you:
function GetValue(Form);
begin
Result := Form.GetValue;
end;
Of course, you need to get the form object that has the
GetValue method in order to pass it to the
GetValue script function. If you want to pass only the name of the needed form, you can do this using the
Evaluate function:
function GetValue(FormName);
begin
Result := Evaluate('Aliases.Sys.MyProg.' + FormName + '.GetValue');
end;