fpc/tests/webtbs/tw14617.pp
2009-10-09 19:47:55 +00:00

30 lines
437 B
ObjectPascal

{$ifdef fpc}
{$mode delphi}
{$endif}
{$r-}
uses
SysUtils, Classes, TypInfo, Variants;
type
TBla = class(TPersistent)
private
fustr: unicodestring;
published
property ustr: unicodestring read fustr write fustr;
end;
var
b: tbla;
u: unicodestring;
begin
b:=tbla.create;
SetPropValue(b, 'ustr', 'abc');
if (b.ustr<>'abc') then
halt(1);
u:=getpropvalue(b,'ustr');
if (u<>'abc') then
halt(2);
end.