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