مشكله اضافه الادوات داخل function
#4
(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; 

شكرااا اخي هذا هوه المطلوب Smile
الرد


الردود في هذا الموضوع
RE: مشكله اضافه الادوات داخل function - بواسطة عبد الله اكرم - 14-02-2019, 09:26 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم