02-03-2012, 06:11 PM
السلام عليكم
هذا المثال ممتاز جداً ويفي بالمطلوب .
بارك الله بيك
وسأدرس المواضيع الاخرى
والله الموفق
هذا المثال ممتاز جداً ويفي بالمطلوب .
كود :
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
Integer = class
FValue: System.Integer;
function ToString: string;
public
property Value: System.Integer read FValue write FValue; //default; //default for Indexed table
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function Integer.ToString: string;
begin
Str(FValue, Result);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
op:integer;
begin
op.Value:=45;
Edit1.Text:=op.ToString;
end;
end.وسأدرس المواضيع الاخرى
والله الموفق
بين الانسان والكفر ترك الصلاة فمن تركها فقد كفر .

