ComboBox1.Items.Add(Combobox1.text);
i:=i+1;
a[i]:=StrToInt(ComboBox1.text);
ComboBox1.SetFocus;
4.Tuzilgan loyiha (proekt) ya’ni Project1 va Unit1 standart modul nomlarini mos nomlar bilan almashtirib saqlaymiz.
5.Yangi nom bilan saqlangan proekt, ya’ni ilova F9 tugmachasini bosish bilan ishga tushuriladi.
Ilova ishga tushirilganda uning quyidagi ko’rinishi ekranda namayon bo’ladi.
Tashkil qilingan modulning to’liq ko’rinishini keltiramiz.
Unit s1p;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
Tform1 = class(Tform)
Button1: Tbutton;
Button2: Tbutton;
Memo1: Tmemo;
Label1: Tlabel;
ComboBox1: TcomboBox;
procedure FormCreate(Sender: Tobject);
procedure Button1Click(Sender: Tobject);
procedure Button2Click(Sender: Tobject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: Tform1;
a:Array[1..10] of integer;
Do'stlaringiz bilan baham: |