Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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.

It may be good to repeat the variable declarations with @variable comments instead of increasing the limits.

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

This function is free to use.

Created 2nd May 2020, last changed 17th October 2022


SyntaxColoring.CheckVariableDeclaration.Notification.Enabled - SyntaxColoring.Clear

💬 Ask a question or report a problem