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

See