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.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
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 |
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
- SyntaxColoring.AutoCompleteVariables.SetEnabled
- SyntaxColoring.CheckVariableDeclaration.Disable
- SyntaxColoring.CheckVariableDeclaration.Enable
- SyntaxColoring.CheckVariableDeclaration.Enabled
- SyntaxColoring.CheckVariableDeclaration.GetLimits
Blog Entries
This function does not need a paid license.
Created 2nd May 2020, last changed 17th October 2022
SyntaxColoring.CheckVariableDeclaration.Notification.Enabled - SyntaxColoring.Clear
