Hi,
I am trying to add one property to a label. I dont get an error but i cant see "FieldName" property either. Any Idea what i am doing wrong? Heres code
Thanks in advance
unit Form1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
//lblID: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
local_bDataChanged: Boolean;
procedure SetDataChanged(Value: Boolean) ;
public
{ Public declarations }
property bDataChanged : Boolean read local_bDataChanged write SetDataChanged;
end;
//Label
type
TlblID = class(TLabel)
private
local_FieldName: string;
procedure SetFieldName(Value: String) ;
public
property FieldName : String read local_FieldName write SetFieldName;
end;
var
Form1: TForm1;
lblID: TLabel;
//LblID: Form1.LblID;
implementation
{$R *.dfm}
procedure TForm1.SetDataChanged(Value: Boolean);
begin
local_bDataChanged := Value;
end;
procedure TlblID.SetFieldName(Value: String);
begin
local_FieldName := Value;
end;
end.
I am trying to add one property to a label. I dont get an error but i cant see "FieldName" property either. Any Idea what i am doing wrong? Heres code
Thanks in advance
unit Form1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
//lblID: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
local_bDataChanged: Boolean;
procedure SetDataChanged(Value: Boolean) ;
public
{ Public declarations }
property bDataChanged : Boolean read local_bDataChanged write SetDataChanged;
end;
//Label
type
TlblID = class(TLabel)
private
local_FieldName: string;
procedure SetFieldName(Value: String) ;
public
property FieldName : String read local_FieldName write SetFieldName;
end;
var
Form1: TForm1;
lblID: TLabel;
//LblID: Form1.LblID;
implementation
{$R *.dfm}
procedure TForm1.SetDataChanged(Value: Boolean);
begin
local_bDataChanged := Value;
end;
procedure TlblID.SetFieldName(Value: String);
begin
local_FieldName := Value;
end;
end.