mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 02:45:58 +02:00
no message
This commit is contained in:
parent
5f496817a0
commit
8c0e6c8943
@ -1,3 +1,7 @@
|
|||||||
|
{ %version=1.1 }
|
||||||
|
{$mode objfpc}
|
||||||
|
uses
|
||||||
|
typinfo;
|
||||||
type
|
type
|
||||||
tmyobject = class
|
tmyobject = class
|
||||||
fs : single;
|
fs : single;
|
||||||
@ -5,5 +9,11 @@ type
|
|||||||
property s : single read fs write fs default 3.1415;
|
property s : single read fs write fs default 3.1415;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
myobject : tmyobject;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
end.
|
myobject:=tmyobject.create;
|
||||||
|
writeln(GetFloatProp(myobject,'S'));
|
||||||
|
myobject.free;
|
||||||
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user