View previous topic :: View next topic |
Author |
Message |
viroxa
Joined: 28 Jul 2017 Posts: 78
|
Posted: Fri Aug 11, 2017 3:22 pm Post subject: Find Variables That Exist Multiple Times |
|
|
Hello, everyone,
is there a way to extract variables that exist multiple times within a routine?
For example, because they are stored as global variables but were passed as arguments as well? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri Aug 11, 2017 3:46 pm Post subject: |
|
|
I don't understand the question. Are you looking for a search feature in the Plato source code editor or some feature in the FTN95 compiler? |
|
Back to top |
|
|
viroxa
Joined: 28 Jul 2017 Posts: 78
|
Posted: Fri Aug 11, 2017 5:07 pm Post subject: |
|
|
A compiler feature. Some sort of notification that there are multiple instances of the same variable. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Fri Aug 11, 2017 5:39 pm Post subject: |
|
|
If you keep your subprograms short, say a couple of hundred lines max, you ought to be able to find particular variables scanning by eye alone. Most editors also have a 'find' and 'find next' - Plato does, but the Edit menu only appears when you have a source code file open. Plato doesn't provide line numbers in the source code window (I think) but the current line number is shown in the status line, and you can note this if you want. |
|
Back to top |
|
|
viroxa
Joined: 28 Jul 2017 Posts: 78
|
Posted: Fri Aug 11, 2017 6:32 pm Post subject: |
|
|
Right now I'm using the debugger, because in the "Variables" window it's easier to see, than by looking over the code itself. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri Aug 11, 2017 7:23 pm Post subject: |
|
|
/xref on the FTN95 command line might help.
Plato does have line numbers available in the left margin. |
|
Back to top |
|
|
|