Programming
87
NetLinx Studio (v2.4 or higher)
With AutoComplete/AutoSuggest enabled, as you type in a variable name, device name
or a reserved identifier, the program will suggest a name that has been previously defined
within the source code.
When the editor makes a suggestion, you may choose to accept the suggestion by hitting
the TAB key (or a different keystroke as defined in the Keyboard tab of the Preferences
dialog). However, if the suggestion is not what you intended, you may choose to have the
editor display it's next suggestion. You can cycle through all of the suggestions by using
the keystroke defined in the Keyboard tab of the Preferences dialog (the Next Suggestion
item in the Advanced Editor category).
There is no default keystroke assignment for Next Suggestion (to avoid conflicting with
pre-existing custom keystrokes). You must set your own keystroke to take effect.
Use the Edit > Rescan Current Source File option to rescan the active file to rebuild the
symbol information used by the AutoComplete and AutoSuggest features.
Stack Variables/Parameters only auto-suggest when they are within the scope of the
CALL, FUNCTION or EVENT that they were declared in.
Call Tips
Call tips are similar to the AutoComplete and AutoSuggest functions, except that Call Tips assist
you with adding declared functions by displaying a list of parameters that are valid for the
particular function you are adding.
Call Tips are shown for declared functions when:
A function name is followed by an open parenthesis.
A single-quoted call name is followed by an open parenthesis.
A single-quoted system call name is followed by an open parenthesis.
The application displays a list of calls when the word "CALL" is followed by a single quote.
It displays a list of System Calls when the word "SYSTEM_CALL" is followed by a single quote as
shown in FIG. 13:
The list of calls is in alphabetical order (with the very first item highlighted by default) - type the
first letter of the desired call to jump to that point in the list. Use the scroll bar to scroll through the
list of calls and click to select the item that you want to insert at the cursor's position.
Double-click, or press the Tab key (or Enter on your keyboard) to insert the selection.
In the example below, the user entered SYSTEM_CALL, then selected 'LDP1F', and added a space
and an open single-quote to receive the following Call Tip:
FIG. 13
Call Tips
Summary of Contents for NETLINX STUDIO V2.4
Page 1: ...instruction manual Software NetLinx Studio v2 4 or higher ...
Page 16: ...NetLinx Studio v2 4 or higher 4 NetLinx Studio v2 4 or higher ...
Page 32: ...The NetLinx Studio v2 4 Work Area 20 NetLinx Studio v2 4 or higher ...
Page 44: ...Working With Workspace Files 32 NetLinx Studio v2 4 or higher ...
Page 88: ...Working With Systems and System Files 76 NetLinx Studio v2 4 or higher ...
Page 118: ...Programming 106 NetLinx Studio v2 4 or higher ...
Page 152: ...Working With Online Devices 140 NetLinx Studio v2 4 or higher ...