[Lazarus] Method in record type, is possible?
silvioprog
silvioprog at gmail.com
Wed Mar 16 03:24:49 CET 2011
Hi.
This is possible in Lazarus/FPC?:
type
TFoo = record
Value: string;
function AsBoolean: Boolean;
end;
function TFoo.AsBoolean: Boolean;
begin
Result := StrToBoolDef(Value, False);
end;
In Delphi:
http://edn.embarcadero.com/article/34324
or:
http://delphi.about.com/od/adptips2006/qt/newdelphirecord.htm
or more:
http://www.google.com/search?sclient=psy&hl=en&site=&source=hp&q=method+for+record+delphi&btnG=Search
Thanks.
--
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