If you can't read please download the document
Upload
maswie
View
85
Download
12
Embed Size (px)
Citation preview
Berikut ini adalah sebuah contoh prosedur untuk memeriksa apakah masih ada kotak isian (tEdit) yang belum diisi oleh user. Untuk mencoba prosedur ini, buatlah sebuah project, kemudian pada form1 tempelk an beberapa komponen Edit dan sebuah Button. Kemudian lakukan double click pada Button tsb dan tempelkan potongan kode berikut ini, procedure TForm1.Button1Click(Sender: TObject); var i:integer; begin for i:=0 to ControlCount-1 do if (controls[i] is tcustomedit) then if (controls[i] as tcustomedit).Text ='' then showmessage ('masih ada yg kosong'); end;