ABL User Defined DataTypes

When running the joanju_testrun we get the following error with regards to user defined data types:

BLUtilities.cls:36:3: unexpected token: GET

Code Example:

DEFINE PUBLIC PROPERTY EnumOrderStatus AS common.EnumOrderStatus
GET:
RETURN objEnumOrderStatus.
END GET.

Is this supported?

Thanks in advance.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
john's picture

parens

Hi Rod, for a GET implementation, proparse expects the parens () as documented in the language ref, ie:

DEFINE PUBLIC PROPERTY EnumOrderStatus AS common.EnumOrderStatus
GET():
RETURN objEnumOrderStatus.
END GET.

You don't need the parens if there is no implementation:

DEFINE PUBLIC PROPERTY EnumOrderStatus2 AS progress.lang.Object
GET.

The fact that the compiler doesn't require the parens is not documented, and not currently supported in Proparse.

Regards,
John


mikefe's picture

Has this been fixed or enhanced yet?

Well, it might not be documented like that, but in fact the OpenEdge Architect templates used for inserting properties with a GET implementation do not add parens as well.

So I'd assume there a bunch of class files using GETters without parents.


john's picture

issue created

Yuk. I didn't realize Architect was using this undocumented feature.

I created an Issue in the Proparse Project www.oehive.org/node/1488.

This one really shouldn't take long to fix at all.


Quick Responce

Thanks for the quick responce. Fixed the problem right away.


tamhas's picture

Are you using this

Are you using this version?
http://www.oehive.org/node/1421