S
sderrico
Guest
Hello, I am trying to declare a list of a custom class. I wrote this code: USING Progress.Lang.*. /* OK */ USING System.Collections.ObjectModel.*. /* OK */ USING "System.Collections.Generic.List System.Windows.Forms.Button ". /* OK */ USING "System.Collections.Generic.List CHARACTER ". /* OK */ USING "System.Collections.Generic.List Entity.Product ". /* ERROR */ I am facing this error message on compilation: Invalid substitution type 'Entity.Product' supplied for a type parameter of Generic class List Entity.Product . (15214) My class look like this: USING Progress.Lang.*. CLASS Entity.Product INHERITS System.Object: END CLASS. I am able to create a variable like this: DEFINE VARIABLE oItem AS CLASS "Entity.Product" EXTENT 20 NO-UNDO . Can someone point me out why the class System.Windows.Forms.Button is compiling but not the Entity.Product class for a List T ? Thank you! Sebastien
Continue reading...
Continue reading...