
sorry banget nich....kalo penyusunannya nggak enak dibaca..tapi Insya Allah, akan gua update terus biar penyusunannya bagus. Satu lagi..gua pake bahasa sendiri tapi gua yakin elo-elo yang baca pasti ngerti deh.
Tulisan ini adalah ringkasan belajar visual basic yang akan disertai dengan beberapa latihan dan trik trik database terutama sybase sql server dan juga beberapa listing program delphi.
(yang penting ada dulu deh..soal updatenya ...elo bisa tanyain ke [email protected])
{{index nya belakangan aza dech}}
JAM PERTAMA
Pada sub judul ini gue kenalin tabel tabel yang mungkin berguna buat 'elo.
Tabel 1
| Prefix | Control |
| cbo | Combo box |
| chk | Check box |
| cmd | Command button |
| dir | Directory list box |
| drv | Drive list box |
| fil | File list box |
| fra | Frame |
| frm | Form |
| grd | Grid |
| hsb | Horizontal scrollbar |
| img | Image |
| lbl | Label |
| lin | Line |
| lst | List box |
| mnu | Menu |
| ole | OLE client |
| opt | Option button |
| pic | Picture box |
| shp | Shape |
| tmr | Timer |
| txt | Text box |
| vsb | Vertical scrollbar |
Gunakan nama prefik variabel untuk memudahkan/mengingat tipe data
Tabel 2
|
Prefix |
Data Type |
Example |
| bln | Boolean |
blnIsOverTime |
| byt | Byte |
BytAge |
| cur | Currency | CurHourlyPay |
| dtm | Date | DteFirstBegan |
| dbl | Double | dblMicroMeasurement |
| int | Integer | IntCount |
| lng | Long | LngStarDistance |
| obj | Object | ObjSoundClip |
| sng | Single | SngYearSales |
| str | String | StrLastName |
| vnt or var | Variant | VntControlValue |
Operator Utama Matematik
Tabel 3
| Operator | Example | Description |
| + | Net + Disc | Adds two values |
| - | Price - 4.00 | Subtracts one value from another value |
| * | Total * Fact | Multiplies two values |
| / | Tax / Adjust | Divides one value by another value |
| ^ | Adjust ^ 3 | Raises a value to a power |
| & (or +) | Name1 & Name2 | Concatenates two strings |
Tampilan Button dalam message box
Table 4
| Named Literal | Value | Description |
| vbOKOnly | 0 | Displays the OK button. |
| vbOKCancel | 1 | Displays the OK and Cancel buttons. |
| vbAbortRetryIgnore | 2 | Displays the Abort, Retry, and Ignore buttons. |
| vbYesNoCancel | 3 | Displays the Yes, No, and Cancel buttons. |
| vbYesNo | 4 | Displays the Yes and No buttons. |
| vbRetryCancel | 5 | Displays the Retry and Cancel buttons. |
Tampilan icon dalam message box
Table 5
| Named Literal | Value | Description |
| vbCritical | 16 | Displays Critical Message icon. |
| vbQuestion | 32 | Displays Warning Query icon. |
| vbExclamation | 48 | Displays Warning Message icon. |
| vbInformation | 64 | Displays Information Message icon |
Tampilan default buttons dalam message box.
Table 6
| Named Literal | Value | Description |
| vbDefaultButton1 | 0 | The first button is the default. |
| vbDefaultButton2 | 256 | The second button is the default. |
| vbDefaultButton3 | 512 | The third button is the default. |
Message box return value
tabel 7
| Named Constant | Value | Description |
| vbOK | 1 | The user clicked the OK button. |
| vbCancel | 2 | The user clicked the Cancel button. |
| vbAbort | 3 | The user clicked the Abort button. |
| vbRetry | 4 | The user clicked the Retry button. |
| vbIgnore | 5 | The user clicked the Ignore button. |
| vbYes | 6 | The user clicked the Yes button. |
| vbNo | 7 | The user clicked the No button. |
Proses Visual Basic Programming
Ketika 'elo mo gunain Visual Basic, Elo perhatiin deh beberapa tahapan dasar :
1. Start Visual Basic.
2. Bikin sebuah aplikasi atau buka aplikasi yang
sudah ada, waktu elo create aplikasi baru,
'elo boleh gunain Visual Basic's VB Application Wizard
untuk initial sheel program lu
3. Test aplikasi dengan menggunakan tool debugging
visual basic .
Tools debugging membantu mencari dan mengeliminate error program(bugs)
4. Compile program lu ampe jadi aplikasi akhir
5. Quit Visual Basic.
6. Distribusi aplikasi lu pada user2x lu.
Coba deh buat pemula...elo latihan dulu bikin kayak gambar gambar diatas. Gunakan ilusi 'lu agar aplikasi yg 'elo bikin lebih kreatif.