Hello,
in the 1C language, it's possible to combine code in areas (regions). They are convenient in that they can be collapsed and expanded, just like procedures and functions. This improves the readability of our code, for example, we can collapse a query that is too long, or we can merge several procedures into a scope.
Code |
---|
#Region LibrariesHandlers
// StandardSubsystems.AttachableCommands
&AtClient
Procedure Attachable_ExecuteCommand(Command)
AttachableCommandsClient.ExecuteCommand(ThisObject, Command, Object);
EndProcedure
&AtServer
Procedure Attachable_ExecuteCommandAtServer(Context, Result)
AttachableCommands.ExecuteCommand(ThisObject, Context, Object, Result);
EndProcedure
&AtClient
Procedure Attachable_UpdateCommands()
AttachableCommandsClientServer.UpdateCommands(ThisObject, Object);
EndProcedure
// End StandardSubsystems.AttachableCommands
#EndRegion |
You can read more details in the help (syntax - assistant)