[progress Communities] [progress Openedge Abl] Forum Post: Re: 11.5.1: .net Generic Types Usage

  • Thread starter Thread starter Stefan Marquardt
  • Start date Start date
Status
Not open for further replies.
S

Stefan Marquardt

Guest
System.Object was a good hint, now I got it running: But, "new T60LoggClass()." is yery slow. For each: FAST assign List and display in Telerik grid control: FAST But when I only add "new T60LoggClass()" to the each loop, I need to wait a few seconds. Even when I remove every property from the class creating ~70000 times a new "empty" class takes many seconds. class T60LoggClass inherits System.Object final: define public property DatLog as char no-undo get. set. define public property IDUser as char no-undo get. set. define public property Handelse as char no-undo get. set. define public property LastChanged as char no-undo get. set. define public property LastUser as char no-undo get. set. define public property Logg as char no-undo get. set. define public property Txt as character no-undo get. set. end class. define variable rArrayList as class /* type parameter */ "System.Collections.Generic.List " no-undo. rArrayList = new "System.Collections.Generic.List "(). define variable x as T60LoggClass. for each T60Logg no-lock ...: x = new T60LoggClass(). assign x:IDUser = T60Logg.IdUser x:Txt = T60Logg.Txt x:DatLog = string(T60Logg.DatLog) x:Handelse = string(T60Logg.Handelse) x:LastChanged = string(T60Logg.LastChanged) x:LastUser = T60Logg.LastUser x:Logg = string(T60Logg.Logg). rArrayList:Add(x). end. this-object:radGridView3:DataSource = rArrayList.

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