مشكله اضافه الادوات داخل function
#3
وعليكم السلام


إما أن تضيف الإجراء ضمن 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; 
[-] كل من 2 users say قال شكرا ل merouane على المشاركة المفيدة
  • Rever7eR, عبد الله اكرم
الرد


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

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


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