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
error_handler:
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