Skip to Content
avatar image
Former Member

cannot delete and save a bracket in custom controller

hii all,

I am getting a strange problem.I have long methods in custom controller.

The final end bracket at the bottom is giving an error:unmatched bracket....When i try delete and save it, itz not getting saved....

I cant find a solution to this.Please do help out.

Thanks,

Parama.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 23, 2008 at 03:58 AM

    Hi,

    U might have forgotten to close some inner loops in ur method

    try checking inner loops first.

    Regards

    Surender Dahiya

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Surender,

      the reason i was insisting on checking for unmatched brackets of the methods first, & of the inner loops(within the method) later, is simply because it helps narrow down the search for the unmatched bracket. Thus its faster.

      Regards,

      Hanoz

  • Jun 23, 2008 at 03:30 AM

    Hi Parama,

    This is a small but a very common problem.

    Its only a matter of finding out the missing closing bracket that you must have deleted by mistake.

    The way to solve this problem is to take one method at a time.

    Double click on the opening bracket of your methods. The only code that should get selected, must be the code belonging to that method only.

    If so, then there is no problem with brackets in that method. Repeat with the next method.

    If not so, then go into the code & repeat the above by double clicking on the opening brackets of all the for/if/while/try-catch/ etc statements.

    This way, you will be able to quickly & systematically findout the missing closing bracket.

    I hope this helps in resolving your mystery of the missing bracket..;-)

    Regards,

    Hanoz

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2008 at 05:46 AM

    HI

    There is some problem of unmatched brackets in one of your methods.

    Leave the last bracket and try matching brackets in your methods. If brackets are matched in methods it will get resolved.

    Mandeep Virk

    Add comment
    10|10000 characters needed characters exceeded