1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-01-23 22:12:47 +02:00

29 lines
376 B
Markdown

# Check DataExchange.Load in event handler
Mandatory checking of DataExchange.Load is absent in event handler
## Noncompliant Code Example
```bsl
Procedure BeforeWrite(Cancel)
// handler code
// ...
EndProcedure
```
## Compliant Solution
```bsl
Procedure BeforeWrite(Cancel)
If DataExchange.Load Then
Return;
EndIf;
// handler code
// ...
EndProcedure
```
## See