Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : RETURN-VALUE attribute
 

RETURN-VALUE attribute

The value returned from a user-defined function, attribute, or method, or a Windows DLL routine, or a UNIX shared library routine.
Data type: The value of the RETURN-VALUE-DATA-TYPE attribute.
Access: Read-only
Applies to: Call object handle
The default is the Unknown value (?).
If you set the RETURN-VALUE-DATA-TYPE attribute to a particular data type before executing INVOKE( ), the value returned is converted to that data type.
If RETURN-VALUE-DATA-TYPE is set to its default value or to the expected data type, when the dynamic invoke returns, the value returned by the user-defined function or attribute is not converted.
When invoking a Windows DLL routine or UNIX shared library routine, RETURN-VALUE-DLL-TYPE must be set before invoking the routine. If you do not, then any value returned by the DLL routine or the UNIX shared library routine will be ignored and RETURN-VALUE will be set to the Unknown value (?).

See also

RETURN-VALUE-DATA-TYPE attribute, RETURN-VALUE-DLL-TYPE attribute