14-02-2019, 09:26 PM
(14-02-2019, 08:19 PM)merouane كتب : وعليكم السلام
إما أن تضيف الإجراء ضمن class الخاص بالفورم أو تقوم بالاستدعاء عبر كامل الطرف الأبوي
PHP كود :type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
function MaxValue(a, b: integer): integer;
end;
function TForm1.MaxValue(a, b: integer): integer;
begin
if a > b then
result := a
else
result := b;
Edit1.text := 'Hello';
end;
أو
PHP كود :function MaxValue(a, b: integer): integer;
begin
if a > b then
result := a
else
result := b;
Form1.Edit1.text := 'Hello';
end;
شكرااا اخي هذا هوه المطلوب

