I was wondering how to call a static method using TOracleObject. I wrapped a constructor for an Oracle object within a static function, as in:
STATIC FUNCTION Construct
RETURN CAnyItem IS
BEGIN
RETURN CAnyItem(1, 2, 3, 4, 5, 6, 7);
END;
The only way I know of calling this function from Delphi is via TOracleObject.CallComplexMethod
and when I do, I receive a "PLS-00587. A Static method cannot be invoked on an instance value' - which seems logical. Can anyone tell me how to initialize my object by calling my wrapped constructor via TOracleObject?
Thanks
STATIC FUNCTION Construct
RETURN CAnyItem IS
BEGIN
RETURN CAnyItem(1, 2, 3, 4, 5, 6, 7);
END;
The only way I know of calling this function from Delphi is via TOracleObject.CallComplexMethod
and when I do, I receive a "PLS-00587. A Static method cannot be invoked on an instance value' - which seems logical. Can anyone tell me how to initialize my object by calling my wrapped constructor via TOracleObject?
Thanks