didier_cabale
12 years agoOccasional Contributor
cannot access property
Hi, I just created a simplest app with Delphi. It is a TForm having a public (not published) property "CustProperty". All is set as follows:
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
FCustProperty: boolean;
procedure SetCustProperty(const Value: boolean);
{ Private declarations }
public
{ Public declarations }
property CustProperty: boolean read FCustProperty write SetCustProperty;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
CustProperty := true;
end;
procedure TForm1.SetCustProperty(const Value: boolean);
begin
FCustProperty := Value;
end;
/// my problem is that I cannot access this property with TestComplete. I read this http://support.smartbear.com/viewarticle/33350/ but does not conflict with what I've coded. Thanks for your help