Kbase P138691: DOC: Syntax error in "OpenEdge Getting Started: Introducing the OpenEdge Architect Visual Designer"
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  27/02/2009 |
|
Status: Verified
SYMPTOM(s):
DOC: Syntax error in "OpenEdge Getting Started: Introducing the OpenEdge Architect Visual Designer" code sample.
In the sample code on page 3-16 of the "OpenEdge Getting Started: Introducing the OpenEdge Architect Visual Designer", the sample code has a syntax error. It uses an OpenQuery() statement after the END CATCH statement.
The sample code containing the syntax error:
CONSTRUCTOR PUBLIC customerForm ( ):
SUPER().
oServiceAdapter = NEW
openedge.tutorial.services.serviceAdapter("CustMaint").
InitializeComponent ( ).
CATCH e AS Progress.Lang.Error:
UNDO, THROW e.
END CATCH.
openQuery().
END CONSTRUCTOR.
Attempting to compile or run the above code generates the following syntax error:
"After a CATCH statement for the main block of a sub-routine, only additional CATCH statements or FINALLY statements are allowed until the end of the sub-routine. (14451)"
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.2A
CAUSE:
Bug# OE00178890
FIX:
None at this time. As a workaround, put the CATCH block inside a DO block or put OpenQuery() statement before the CATCH block.