[Progress Communities] [Progress OpenEdge ABL] Forum Post: Enums in interface dont work ???

  • Thread starter Thread starter tr.staake
  • Start date Start date
Status
Not open for further replies.
T

tr.staake

Guest
EDIT: Sorry for the wonky formatting first time poster and the editor is a little secretive about what its doing [:P] I am getting an error when trying to implement an interface that is using ENUM's and I an not having much luck as to finding out why... I have an interface that looks like: using Progress.Lang.*. using Business.Library.Results. using Business.Library.Instrumentation.Notification.ETransportationStatus. using Business.Library.Instrumentation.Notification.ENotificationTransportTypes. interface Business.Library.Instrumentation.Notification.INotificationTransportMethod: define public property transportType as ENotificationTransportTypes no-undo get. set. define public property transportStatus as ETransportationStatus no-undo get. set. define public property results as Results no-undo get. set. /*------------------------------------------------------------------------------ Purpose: Notes: ------------------------------------------------------------------------------*/ method public Business.Library.Results Send( ). end interface. ####################################################################################################### ...then I try to implement the interface in an EmailNotification class (all this code is generated by PDSOE): ####################################################################################################### using Progress.Lang.*. using Business.Library.Instrumentation.Notification.INotificationTransportMethod. block-level on error undo, throw. class Business.Library.Instrumentation.Notification.EmailNotification implements INotificationTransportMethod: define public property results as Results no-undo get. set. define public property transportStatus as ETransportationStatus no-undo get. set. define public property transportType as ENotificationTransportTypes no-undo get. set. method public Business.Library.Results Send( ): undo, throw new Progress.Lang.AppError("METHOD NOT IMPLEMENTED"). end method. end class. ####################################################################################################### When I try to syntax check the class I get this error: Syntax Check: The data type of property 'transportType' does not match the same-named property in abstract class or interface 'Business.Library.Instrumentation.Notification.INotificationTransportMethod' I've been staring at this problem for way too long and not making much ground. Hopefully its something simple that I am just missing. It appears to have to do with the ENUM's because If I change them to character data-types I dont get the error. I just dont get what I am doing wrong with them.

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