Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a problem in my codes. when i used goto inside the finally in try-cath-finally. it's useless. it doesn't work. will you able to help me how to do this.
Posted
Comments
ridoy 22-Jul-13 5:37am    
I think it is not a good approach since finally statement doing a cleanup inside the try catch block.
Richard MacCutchan 22-Jul-13 6:08am    
Without seeing your code it is difficult to answer the question, but I would be tempted to suggest that it is not a good idea.
[no name] 22-Jul-13 10:02am    
There is a 99.99999999% probability that you do not have to use "goto" at all.

1 solution

 
Share this answer
 
Comments
ridoy 22-Jul-13 5:32am    
OP asked not to use goto inside try catch,he asked it in case of finally.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900