Field-Map Scripting

3.4.4.1 DisableScripts

DisableScripts procedure


Prototype:

procedure DisableScripts;

Description:

Deactivates predefined scripts. Subsequently, they can be reactivated using EnableScripts procedure. This is useful if you need to perform some operations with dataset which, normally, would cause activation of predefined scripts, which are not desirable in this case (e.g. if you need to calculate simple mathematical operation with numerical data of some layer, but ongoing running of AfterEdit script would probably be time consuming but not necessary).

Syntax:

Project.DisableScripts;


Part

Description


Project

A reference to the Field-Map project as defined in Field-Map Project Manager




Return value:

none


Note:


DisableScripts procedure has respective forms which work "type-of-script" specific. The prototype of their syntax and functionality is the same as DisableScripts procedure, the only difference is their specific functionality. These scripts include:

          • Project.DisableAfterCancelScripts;
          • Project.DisableAfterDeleteScripts;
          • Project.DisableAfterEditScripts;
          • Project.DisableAfterInsertScripts;
          • Project.DisableAfterPostScripts;
          • Project.DisableAfterScrollScripts;
          • Project.DisableBeforeCancelScripts;
          • Project.DisableBeforeDeleteScripts;
          • Project.DisableBeforeEditScripts;
          • Project.DisableBeforeInsertScripts;
          • Project.DisableBeforePostScripts;
          • Project.DisableBeforeScrollScripts;
          • Project.DisableLayerEventScripts;
          • Project.DisableOnChangeScripts;
          • Project.DisableOnValidateScripts;

                               

See also:

DisableScripts; EnableScripts; ScriptsEnabled; PerformLayerScript; PerformOnChangeScript; PerformOnChangeScriptForAllRecords