Article Details
Id: | 18373 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.04.01 |
Opened: | 23/06/2021 |
Closed: | 15/07/2021 |
Released: | 31/08/2021 |
Job: | J026828 |
Scripting; "Power Tools" options added to Script Editor
"Power Tools" have been added to the Script Editor within finPOWER Connect Desktop.
They can be accessed from either:
- Right clicking the code area and selecting the "Power Tools" sub menu.
- From the top bar immediately above the code area.
Two Power Tools are initially available:
- Sort Variable Declarations
- This allows variables to be sorted alphabetically within the Script code.
- Either a block of code can be selected, and then sorted. Or, with nothing selected the entire documents variables will be sorted.
- Declaration blocks separated by a blank line will be sorted independently of each other.
- Sort Methods
- This allows Methods to be sorted alphabetically within the Script code.
- Similar to sorting variables, either a block of code can be selected to be sorted or left unselected and the entire document will be sorted (until the first Class is hit).
- If selecting blocks, an entire Method must be selected before sorting can take place.
- To sort Methods within a Class, the Class must be firstly selected.
- Options are presented to leave the Main() Method and New() Constructors at the top of the Script Code / Class.
- This option is only presented if the Main() / New() Methods are already at the top of the Script Code / Class.
NOTE: These options are only available when the Script Editor's Language is set to VB.NET and is in Edit Mode.