[Lazarus] Method in record type, is possible?
silvioprog
silvioprog at gmail.com
Thu Mar 17 02:41:10 CET 2011
2011/3/16 Graeme Geldenhuys <graemeg.lists at gmail.com>:
[...]
> TFoo = object
> Value: string;
> function AsBoolean: Boolean;
> end;
>
> And yes, FPC supports the Object structure. ;)
But this way would not be possible to use something like this:
TFoo = record...
var
VFoo: TFoo;
begin
VFoo[0].Value := 'A';
VFoo[1].Value := 'B';
...
:/
> Regards,
> - Graeme -
--
Silvio Clécio
=================================================
Blog - silvioprog.com.br
Twitter - twitter.com/silvioprog
LazSolutions - code.google.com/p/lazsolutions
Lazarus-BR - http://groups.google.com.br/group/lazarus-br?hl=pt-BR
=================================================
More information about the Lazarus
mailing list