1 / 14

Pertemuan 2 Pengenalan Visual Basic Lanjut

Pertemuan 2 Pengenalan Visual Basic Lanjut. Matakuliah : M0462/Programming I Tahun : 2005 Versi : <<versi/revisi>>. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : menjelaskan Visual Basic lebih lanjut. Outline Materi. Menyimpan Project

monty
Télécharger la présentation

Pertemuan 2 Pengenalan Visual Basic Lanjut

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. Pertemuan 2Pengenalan Visual Basic Lanjut Matakuliah : M0462/Programming I Tahun : 2005 Versi : <<versi/revisi>>

  2. Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : • menjelaskan Visual Basic lebih lanjut

  3. Outline Materi • Menyimpan Project • Tipe Project dalam Visual BasicMenu Bar dan Menu • Tipe File dalam Visual Basic • Variable • Aturan Penamaan • Tipe Data

  4. Menyimpan Project Cara menyimpan project bisa melalui menu File, kemudian pilih Save Project atau Save Form (apa bedanya ?), atau tekan tombol icon bergambar disket di ToolBar. Selanjutnya akan muncul layar Dialog, dan isikan nama sesuai Form atau Projectnya. Biasakan memberi nama Project dengan awal Prj dan Form dengan awalan Frm. Misal : File Form untuk simpan data -> FrmSimpanData File Project untuk Toko Hore -> PrjTokoHore

  5. Tipe Project dalam Visual Basic

  6. Tipe File dalam Visual Basic

  7. Variable • Variable adalah lokasi di dalam memori komputer dimana program kita dapat menyimpan data. Sebuah variable dapat menerima berbagai macam tipe data, seperti angka atau teks. Contoh : Dim Name as String Dim Age as Integer

  8. Aturan Penamaan • Varible harus diawali dengan huruf • Nama Variable dapat berisi A-Z, a-z, 0-9 dan underscore ( _ ) • Nama Variable tidak boleh melebihi 255 karakter • Variable harus unik dalam scope yang sama (per project, form, module, dst) 

  9. Tipe Data • Visual basic mempunyai beberapa tipe data yang built-in seperti berikut

  10. Tipe Data Lanjutan

  11. Untuk mendefine tipe data sendiri kita menggunakan perintah Public Type … And Type. Contoh : Module1 (Module1.bas) Public Type FullName FirstName as string LastName as string End Type

  12. Referensi • http://www.developerfusion.com/show/52/3/Aturan Penamaan • http://www.officecomputertraining.com/vbtutorial/tutpages/page12.asp-- Data Type

  13. SELESAI

More Related