General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
Hi David.
>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)
To add to Fabio's comment, you can't use RETURN inside a TRY structure.
Doug
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