Missing ENDSWITCH

Navigation:  Messages > Macro Compiler Messages > Errors >

Missing ENDSWITCH

Previous pageReturn to chapter overviewNext page

This compiler error will occur if there is no matching endswitch keyword following an switch block. For example:

 

begin

   nTemp = WeekdayOf(n_TokenDate)

  switch nTemp

  case 1

  sRESULT = '1'

  case 2

  sRESULT = '2'

end

 

To prevent this type of errors, always use the method of writing skeleton blocks when using block structures.


Topic 109611 updated on 16-Apr-2002.
Topic URL: http://www.qppstudio.net/webhelp/index.html?missingendswitch.htm