Sie sind auf Seite 1von 6

ASCII character table

Dec Hex 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A NUL (null) SOH (start of heading) STX (start of text) ETX (end of text) EOT (end of transmission) ENQ (enquiry) ACK (acknowledge) BEL (bell) BS (backspace) HT (horizontal tab) LF (line feed) VT (vertical tab) FF (form feed) CR (carriage return) SO (shift out) SI (shift in) DLE (data link escape) DC1 (device control 1) DC2 (device control 2) DC3 (device control 3) DC4 (device control 4) NAK (negative acknowledge) SYN (synchronous idle) ETB (end of transmission block) CAN (cancel) EM (end of medium) SUB (substitute) ASCII Key ctrl @ ctrl A ctrl B ctrl C ctrl D ctrl E ctrl F ctrl G ctrl H ctrl I ctrl J ctrl K ctrl L ctrl M ctrl N ctrl O ctrl P ctrl Q ctrl R ctrl S ctrl T ctrl U ctrl V ctrl W ctrl X ctrl Y ctrl Z

27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38

ESC (escape) FS (file separator) GS (group separator) RS (record separator) US (unit separator) SP (space) ! " # $ % & ' ( ) * + , . / 0 1 2 3 4 5 6 7 8

ctrl [ ctrl \ ctrl [ ctrl ^ ctrl _

57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56

9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V

87 88 89 90 91 92 93 94 95 96 97 98 99

57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63

W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t

100 64 101 65 102 66 103 67 104 68 105 69 106 6A 107 6B 108 6C 109 6D 110 6E 111 6F 112 70 113 71 114 72 115 73 116 74

117 75 118 76 119 77 120 78 121 79 122 7A 123 7B 124 7C 125 7D 126 7E 127 7F

u v w x y z { | } ~ DEL

Hanya Angka yang bisa di Input dalam TextBoxt Private Sub txtNomor_KeyPress(KeyAscii As Integer) If Not (KeyAscii >= Asc("0") & Chr(13) _ And KeyAscii <= Asc("9") & Chr(13) _ Or KeyAscii = vbKeyBack _ Or KeyAscii = vbKeyDelete _ Or KeyAscii = vbKeySpace) Then Beep KeyAscii = 0 End If End Sub Hanya Huruf Private Sub txtNama_KeyPress(KeyAscii As Integer) If Not (KeyAscii >= Asc("a") & Chr(13) _ And KeyAscii <= Asc("z") & Chr(13) _ Or (KeyAscii >= Asc("A") & Chr(13) _ And KeyAscii <= Asc("Z") & Chr(13) _ Or KeyAscii = vbKeyBack _ Or KeyAscii = vbKeyDelete _ Or KeyAscii = vbKeySpace)) Then Beep KeyAscii = 0 End If End Sub Membersihkan Seluruh Control TextBox dan Combo Box Sub Clear() For Each Control In Me.Controls

If TypeOf Control Is TextBox Then Control.Text = "" End If If TypeOf Control Is ComboBox Then Control.Text = "" End If Next Control End Sub NB: jika ada tombol yang lain tinggal di tambah kondisi IFnya aja, dan tuk menonaktifkan seluruh tombol tinggal ganti "Control.Text=Enabled" aja

Das könnte Ihnen auch gefallen