General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
>I've got a little function that if it fails I want it to stop and not continue on with the rest of the program. And I'm trying to figure out if "return" is appropriate or a try and catch block. Code:
>
>if sqlrun(lc_cmd) = "Fail"
>return
>else
>anotherfuntion(lcResult)
>endif
>
>or
>
>try
>
>sqlrun(lc_cmd)
>
>catch
>
>return
>
>end
>
>anotherfunction(lcReuslt)
>
>Hope this makes sense, thanks in advance.
if sqlrun() returns an error code, the first is the best.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only