Silverfrost Forums

Welcome to our forums

Find Variables That Exist Multiple Times

11 Aug 2017 2:22 #19994

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?

11 Aug 2017 2:46 #19996

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?

11 Aug 2017 4:07 #19998

A compiler feature. Some sort of notification that there are multiple instances of the same variable.

11 Aug 2017 4:39 #19999

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.

11 Aug 2017 5:32 #20000

Right now I'm using the debugger, because in the 'Variables' window it's easier to see, than by looking over the code itself.

11 Aug 2017 6:23 #20001

/xref on the FTN95 command line might help.

Plato does have line numbers available in the left margin.

Please login to reply.