Ciptakan database mahasiswa dengan strukture sebagai berikut:
Filed Name Type Size Key
NIM A 15 * NAMA A 25 NFOR N NSUM N NAKH N NHUR A 2
Design Form-nya seperti dibawah ini:
Lakukan setting object sebagai berikut:
No Object Properties Value
1. DBEdit1 Data Source Datasource1 Data Field NIM 2. DBEdit2 Data Source Datasource1 Data Field NAMA 3. DBEdit3 Data Source Datasource1 Data Field NFOR 4. DBEdit4 Data Source Datasource1 Data Field NSUM 5. DBEdit5 Data Source Datasource1 Data Field NAKH 6. DBEdit6 Data Source Datasource1 Data Field NHUR 7. Label1 – label7 Caption Sesuaikan Dengan object DBEdit 8. Button1 Caption << 9. Button2 Caption >> 10. Button3 Caption &TAMBAH 11. Button4 Caption &SIMPAN 12. Button5 Caption &UBAH 13. Button6 Caption &HAPUS 14. Button7 Caption &BATAL 15. Button8 Caption &KELUAR 16. Table1 Databasename Mahasiswa Tablename Mhs CacheUpdate True Active True 17. Datasource1 DataSet Table1
begin Table1.Delete ; ShowMessage('DATA TELAH TERHAPUS'); end;
procedure TForm1.DBEdit4Exit(Sender: TObject);
begin dbedit5.text :=floattostr(strtofloat(dbedit3.text )*0.4+strtofloat(dbedit4.text )*0.6); if strtofloat(dbedit5.text)>85 then dbedit6.text :='a' else if strtofloat(dbedit5.text)>75 then dbedit6.text :='b' else if strtofloat(dbedit5.text)>60 then dbedit6.text :='c' else if strtofloat(dbedit5.text)>45 then dbedit6.text :='d' else dbedit6.text :='e'; end;
Microsoft Word - Transistor Models and The Feedback Amp - Docmicrosoft Word - Transistor Models and The Feedback Amp - Doctransistor - Models - and - The - Fba