fpc/tests/webtbs/tw9601.pp
florian cc5e29fe01 + test for last commit
git-svn-id: trunk@8866 -
2007-10-20 17:45:50 +00:00

25 lines
399 B
ObjectPascal

{$mode objfpc}
uses
sysutils,typinfo;
{$M+}
type
TMyClass = class(TObject)
private
FValue: Currency;
published
property Value:Currency read FValue write FValue;
end;
var
MyClass :TMyClass;
begin
MyClass := TMyClass.Create;
SetFloatProp(MyClass, 'Value', 1);
if MyClass.Value<>1 then
halt(1);
WriteLn(CurrToStr(MyClass.Value));
MyClass.Free;
writeln('ok');
end.