When the method signatures looks like this;
Method(INPUT str AS CHARACTER, INPUT obj AS System.Object)
Method(INPUT str AS CHARACTER, INPUT obj AS System.Type) - System.Type is derived from System.Object
Calling the method with the following parameters fails;
THIS-OBJECT:Method("sometext", ?).
NOTE: This type of call is very common with many .NET Framework static classes.
DEFINE VARIABLE oObject AS System.Object NO-UNDO .
ASSIGN oObject = ? .
DEFINE VARIABLE oType AS System.Type NO-UNDO .
ASSIGN oType = ? .
And then
THIS-OBJECT:Method("sometext", oObject).
or
THIS-OBJECT:Method("sometext", oType).
Will resolve this case.