Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Cryptic Trace statement: Expected to see a statement and instead saw a block.

During the debug and trace, I often this remark inside my switch() block:

Problem at line 298 character 21: Expected to see a statement and instead saw a block.

{ break; }

And it cannot continue.

What is this and how to avoid?

— asked April 17th 2010 by Peter Lum
  • a
  • and
  • block
  • debug
  • expected
  • instead
  • saw
  • see
  • statement
  • to
  • trace
0 Comments

1 Answer

  • Accepted Answer

    I think Titanium is picky about your switch syntax.

    Don't put { braces } around your case items, and you should be ok.

    — answered April 18th 2010 by Mark Burggraf
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.