[stackoverflow] [progress Openedge Abl] Data-type As Parameter

Status
Not open for further replies.
W

W0lfw00ds

Guest
I'd like to add a data type paramater to my application. This parameter would accept all primitive types and classes.

F.ex:

FUNCTION receiveDataType RETURNS LOGICAL (dataType AS DATATYPE):

IF dataType = mypackage.MyClass THEN ...
ELSE IF dataType = INTEGER THEN ...

END FUNCTION.


One way would be to use CHARACTER-parameter and validate that it refers to existing data type. However, some of Progress' own procedures take data types as parameters (f.ex CAST()). Is it possible to do the same with user created procedures?

Continue reading...
 
Status
Not open for further replies.
Top