About Question enthuware.ocajp.i.v7.2.1254 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
M.Komarov
Posts: 17
Joined: Fri Sep 06, 2013 1:37 am
Contact:

About Question enthuware.ocajp.i.v7.2.1254 :

Post by M.Komarov »

Note that the last statement ( j+=4) is not executed as there was an exception thrown in the try block.
Maybe I'm wrong, but it seems to me that the reason (of not executing the statment j+="4") is the return; statment in the catch block. When I comment the return; statement, "4" appears at the end of the output.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1254 :

Post by admin »

You are right. It is because of the return which is executed because of the exception caused in the try block. The explanation has now been enhanced to make it clear.

thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests