1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-12-03 17:26:16 +02:00
Files
v8-code-style/bundles/com.e1c.v8codestyle.bsl/markdown/module-accessibility-at-client.md
Dmitriy Marmyshev 1bdb27b7d9 #497 Метод или переменная доступны на Клиенте (#456)
* #319 Метод или переменная доступны на Клиенте
2021-12-14 09:59:43 +02:00

1.2 KiB

Method or variable accessible AtClient

Method or variable accessible AtClient in manager or object module

Noncompliant Code Example


Var moduleVar;

Procedure BeforeDelete(Cancel)
	// Non-compliant
EndProcedure


Procedure Noncompiant() Export
	// empty
EndProcedure

moduleVar = Undefined;

Compliant Solution


#If Server Or ThickClientOrdinaryApplication Or ExternalConnection Then

Var moduleVar;

Procedure BeforeDelete(Cancel)
	// Compliant
EndProcedure

Procedure Compiant() Export
	// empty
EndProcedure


moduleVar = Undefined;

#Else
	Raise NStr("en = 'Invalid object call on the client.'");
#EndIf

See