Welcome to my blog..

Feel free to read/copy anything and please put the reference link to original source.
Share your blog link at the bottom of this page.

my sharing server :
How to download : http://rionix88.blogspot.com/2011/04/rionix-sharing.html
Other Sharing site : http://rionix88.blogspot.com/2011/01/ump-sharing-links-2.html

buat duit : http://rionix88.blogspot.com/2011/01/buat-ump-sharing-buat-duit.html

How to build server : http://rionix88.blogspot.com/2011/01/kaedah-membuat-ump-sharing-server.html

25 August 2009

VB : Error_handler

Kenkadang kalau korang run prog pastu masukkan tulisan, nnt die kuar error tahape2 yang korang x paham kan? Utk elakkan camtu, kite wat error_handler

Private Sub Command1_Click()
On Error GoTo error_handler
'(lepas command click tu masukkan error_handler)

'sini korang nyer coding2 merepek tu

Exit Sub 'To prevent error handling even the inputs are valid
MsgBox "The input is not a number! Try again!", vbExclamation
End Sub

'(sebelum end sub tu korang masukkan exit sub, pastu masukkan error_handler korang)

rionix ~ tadi lupe nk copy acap nyer programming time nk anta esemen 1 td.. haha..

No comments:

Post a Comment

Blog Exchange