Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5    Statistic    FMM    Blog  

SyntaxColoring.CheckVariableDeclaration.SetLimits

Sets limits for variable check.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 10.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SyntaxColoring.CheckVariableDeclaration.SetLimits" { ; Limit1; Limit2 } )   More

Parameters

Parameter Description Example Flags
Limit1 How many lines to look up. 500 Optional
Limit2 How long a script may be to not be checked at all. 2000 Optional

Result

Returns OK or error.

Description

Sets limits for variable check.
By default this returns 500 and 2000 as we look up to 500 lines up for variable declaration and don't check scripts with 2000 or more lines.
Script workspace gets slower if we check >500 lines on every change made.

Examples

Set higher limits:

MBS( "SyntaxColoring.CheckVariableDeclaration.SetLimits"; 600; 2400 )

Reduce to half of the deault:

MBS( "SyntaxColoring.CheckVariableDeclaration.SetLimits"; 250; 1000 )

See also

Blog Entries

Created 2nd May 2020, last changed 27th October 2021


SyntaxColoring.CheckVariableDeclaration.Notification.Enabled - SyntaxColoring.Clear

Feedback: Report problem or ask question.


Start Chat