1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Development Standards
  3. Code conventions
  4. Using 1C:Enterprise language structures

Restrictions on using Go operator

  • Using 1C:Enterprise language structures
    • General requirements to creating 1C:Enterprise language structures
    • Moving expressions
    • Using duplicate code
    • Using compilation directives and preprocessor commands
    • Defining variable value type
    • Getting objects metadata
    • Form module event handlers attached in code
    • Using global variables in modules
    • Local variables pre-initializing
    • Using event log
See more

Scope: a managed application, a mobile application, and an ordinary application.

Guideline

1. Avoid using the GoTo operator in 1C:Enterprise language code as its use can result in complicated and ill-structured modules. It is difficult to understand the execution sequence and interrelation of its snippets. Instead of the GoTo operator, use other statements of 1C:Enterprise language. 

Incorrect example:

 If ChartOfCalculationTypes = Object.ChartOfCalculationTypes Then

GoTo ChartOfCalculationTypes;

EndIf;

Correct example:

 If ChartOfCalculationTypes = Object.ChartOfCalculationTypes Then

ProcessChartOfCalculationTypes();

EndIf;

Scope (details): a managed application and an ordinary application.

2. Avoid using the GoTo operator in common modules with "client (managed application)" property, command modules, and client code of managed form modules as this method is not supported by 1C:Enterprise platform in the web client mode.

© 2020-2021 1C INTERNATIONAL LLC www.1Ci.com Support policy