1 / 24

PENGENALAN USER INTERFACE DELPHI 7.0

PENGENALAN USER INTERFACE DELPHI 7.0. Erna Sri Hartatik Amethyst.aiko@gmail.com http:// amethyst88sblog.tk. Pokok Bahasan. Mengenal Event Standart Mengenal Tipe Data - String & Numerik - Konstanta Konversi tipe Data. Pengertian.

shakti
Download Presentation

PENGENALAN USER INTERFACE DELPHI 7.0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PENGENALAN USER INTERFACE DELPHI 7.0 Erna Sri Hartatik Amethyst.aiko@gmail.com http://amethyst88sblog.tk

  2. PokokBahasan • Mengenal Event Standart • MengenalTipe Data • - String & Numerik • - Konstanta • Konversitipe Data

  3. Pengertian • Delphi merupakanbahasapemrogramanbersifatevet-driven. • Artinya Delphi akanmenjalankanperintahketikaadasebuah event. • Event adalah property yang memilikisebuah pointer untukmenunjuksebuahprocedure.Proceduretersebutdiisidengan “Coding”

  4. Program Pertama event OnClick Klik 2x

  5. Nama form Nama komponen event Perintah menampilkan pesan Program Pertamaevent OnClick Gunakan ctrl+spasi Klik 2x

  6. Program Pertamamenjalankan (compile) program Hasil kompilasi Program pertama anda

  7. Component Properties

  8. Ketika kursor memasuki EdtNama On Enter Ketika tombol mouse masuk di RBWanita Mouse move Ketika Checkbox3 di klik On Click Latihan Menutup form

  9. DATA VARIABEL NAMA VARIABEL VARIABLEPengertian • Variable adalahpenampung data sementara

  10. VARIABLEAturanPenulisan • Tidakbolehsamadenganreserved words Write, Read, Begin, End, Var, Procedure dll • Harusdiawalidenganhuruf / underscore ( _ ) selanjutnyabolehdigabungdenganangka Contoh : Nama, _Umur, Notelp1 1Nama, 2Alamat, 3Notelp

  11. Variabel lokal VARIABLELocal • Dideklarasikandidalamsebuah procedure / function • Hanya procedure / function tersebut yang bisamenggunakan

  12. Variabel global VARIABLEGlobal • Dideklarasikanpadabagianinterface • Seluruh procedure / function yang adadapatmenggunakan

  13. VARIABELTipe Data • Integer (bilanganbulat)

  14. VARIABELTipe Data • Real (bilangannyata / pecah)

  15. VARIABELTipe Data • Boolean (TRUE / FALSE)

  16. VARIABELTipe Data • Character & String

  17. Konstanta • Variabel yang nilainyatetap

  18. VARIABELKonversiTipe Data

  19. Operator • Arithmatic Operators • + (sum) • - (substraction) • * (multiply) • / (divide for real) • Div (divide for integer) • Mod (modulus for integer)

  20. True True True True True False False True False True False True False False False False Operator • Boolean Operators • Not (invers) • And (true if boathvariables are true) • Or (true if one of the variable is true)

  21. Operator • Relational Operators • := (assign) • = (equal) • <> (not equal) • < (less than) • > (greater than) • <= (less than or equal) • >= (greater than or equal)

  22. Latihan Masukkan ke var. GAPOK (global) Masukkan ke var. PAJAK (global) Ketika di klik / mendapat kursor Langsung menghitung 10% dari gaji pokok TakeHomePay := GAPOK - PAJAK

More Related