halo mga istoryaniks
kinsay kahibawo sa code sa error handler
ako unta ibutang sa ako project
i need ure knowledge
halo mga istoryaniks
kinsay kahibawo sa code sa error handler
ako unta ibutang sa ako project
i need ure knowledge
What funny language is this?
PHP Code:
On Error Goto ErrorHandler
..
Exit Sub
..
End Sub
..
PHP Code:
try {
...
throw Exception()
...
} catch( Exception Error )
{
...
...
}
PHP Code:
try:
print hexs(3358)
except:
if NameError:
try:
print "DIE!"
finally:
print "*****!"
a lot of things you can do in handling errors, Most of PL nowadays have this features built on them, and you got to use this properly, especially if you are working on a serious DB, as runtime errors may corrupt your database or external files.
wala pa ko kahibawo ana php
unsa mana php pareha ra na sa vb?
vb6 pa
i learning pa sa vb6
project man gud ni namo
the first example is a VB code![]()
Mark is right..the 1st sample is a VB code..this example is a private sub.
Private Sub Test()
On Error GoTo ErrHandler
...
Exit Sub
ErrHandler:
...
End Sub
try catch mas maayu..
Try
ur codes....(note: everytime naai mkt.an error mu ambak xa ad2 sa catch..)
Catch Ex as Exception
msgbox ex.ToString (something n.ana..)
End Try
Pwd pd apilan og Finally para patyun imng mga objects or e dispose. something like dat =)
e.g.
Try
ur codes....
Catch Ex as Exception
msgbox ex.ToString (something n.ana..)
Finally
object = nothing (sample ra ni hehe)
End Try
ka mga bryt ba ninyo ug vb.
Similar Threads |
|