Re: [Lazarus] Where to place definition of a record?

2009-01-27 Thread Marc Weustink
Andreas Berger wrote: > But unfortunately an object is not totally record compatible. It can not > do this: > > foo = object > a : integer > case boolean of > true:{...}; > fasle: {...} > end; > procedure b; > end; You cant do this in a record either (if you replace "proc b" by "

Re: [Lazarus] Where to place definition of a record?

2009-01-26 Thread Andreas Berger
But unfortunately an object is not totally record compatible. It can not do this: foo = object a : integer case boolean of true:{...}; fasle: {...} end; procedure b; end; Martin Friebe wrote: > try > > type > foo = Object > a : integer; > Procedure b; > end; > > >

Re: [Lazarus] Where to place definition of a record?

2009-01-25 Thread Zaher Dirkey
I like to have feature for inherit Object from a Class type Tfoo = Class a : integer; procedure b; end; Tfoo2 = Object(TFoo); var foo: TFoo2; begin foo.b; end; ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.fre

Re: [Lazarus] Where to place definition of a record?

2009-01-24 Thread Dave Coventry
Ah. Thank you all! ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Where to place definition of a record?

2009-01-24 Thread Martin Friebe
Howard Page-Clark wrote: > On Sun, 25 Jan 2009 00:22:09 +0200 > Dave Coventry wrote: > > >> type >> TNameValueRecord = record >> private >> FNames: array of string; >> FTypes: array of string; >> function GetCount: integer; inline; >> > ... end; > > Delphi 2006 introduced

Re: [Lazarus] Where to place definition of a record?

2009-01-24 Thread Howard Page-Clark
On Sun, 25 Jan 2009 00:22:09 +0200 Dave Coventry wrote: > I'm following a suggestion for producing my own records > so that I can define a custom TStringlist as detailed in this > article: > http://dn.codegear.com/article/33423 > > However, I am unsure of where to post this code and am > wonderi

Re: [Lazarus] Where to place definition of a record?

2009-01-24 Thread Michael Van Canneyt
On Sun, 25 Jan 2009, Dave Coventry wrote: > Hi, > > I'm following a suggestion for producing my own records > so that I can define a custom TStringlist as detailed in this > article: > http://dn.codegear.com/article/33423 > > However, I am unsure of where to post this code and am > wondering i

[Lazarus] Where to place definition of a record?

2009-01-24 Thread Dave Coventry
Hi, I'm following a suggestion for producing my own records so that I can define a custom TStringlist as detailed in this article: http://dn.codegear.com/article/33423 However, I am unsure of where to post this code and am wondering if someone would advise me. === snip ===