You've already forked v8-code-style
mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-12-04 01:33:29 +02:00
1.1 KiB
1.1 KiB
Restrictions on the use of export procedures and functions in a command and form modules
Do not place export procedures and functions in command and form modules. To implement export procedures and functions, it is recommended that you use object modules, object manager modules, or common modules.
Recommended once a form is opened, don't address form methods and properties.
An exception to this rule are export procedures that handle notifications (NotifyDescription.ProcedureName).
Noncompliant Code Example
&AtClient
Procedure CommandProcessing(CommandParameter, CommandExecuteParameters) Export
EndProcedure
Compliant Solution
&AtClient
Procedure CommandProcessing(CommandParameter, CommandExecuteParameters)
EndProcedure