Setelah di artikel sebelumnya saya memberikan sedikit contoh tetang
validasi input text pada php, dan validasi input text pada visual basic
yang hanya bisa di input dengan huruf, di sini saya berikat untuk contoh
source code mengenai validasi input text di visual basic,silahkan
kalian download contoh source code nya :
Untuk penampakan

- Private Sub txthufur_KeyPress(KeyAscii As Integer)
- If KeyAscii >= 65 And KeyAscii <= 90 Then
- KeyAscii = KeyAscii
- Else
- If KeyAscii >= 97 And KeyAscii <= 122 Then
- KeyAscii = KeyAscii
- Else
- KeyAscii = 0
- End If
- End If
- End Sub
- Private Sub txtkapital_KeyPress(KeyAscii As Integer)
- KeyAscii = Asc(UCase(Chr(KeyAscii)))
- End Sub
- Private Sub txtangka_KeyPress(KeyAscii As Integer)
- If KeyAscii >= 48 And KeyAscii <= 57 Then
- KeyAscii = KeyAscii
- Else
- KeyAscii = 0
- End If
- End Sub
0 komentar:
Posting Komentar