Thanks for the reply, but I guess not concegui explain my problem, I'll try to be clearer with an example
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, RTTICtrls, Forms, Controls, Graphics, Dialogs,
StdCtrls;
type
{ TMyObject }
TMyObject = class(TObject)
private
FVDate: TDate;
published
property VDate: TDate read FVDate write FVDate;
end;
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
TIEdit1: TTIEdit;
procedure Button1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
VarDate: TMyObject;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
VarDate:=TMyObject.Create;
TIEdit1.Link.TIObject:=TPersistent(VarDate);
TIEdit1.Link.TIPropertyName:='VDate';
end;
procedure TForm1.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
VarDate.Free;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
VarDate.VDate:=Now;
end;
end.
where to add the conversion?
not want to seem loose, but I do not concegui.
Att.
Anderson Junior