Hi all,
I have recently decided to go through a huge lump of old source code and begin to both tidy it up and bring it into the realms of version 8 (from the dark depths of version 6!). Some of the changes will include removing work files and incorporating temp tables and things like that but there is one problem that I seem to be seeing a lot, that is variables that are declared but never used.
My question is, is there a way of checking code for variables that are declared but never used? Currently I am cutting the declaration of the variable out and seeing if it will recompile. It it complains then I paste it back in again (I only do this with standard variables and shared variables, not with new shared variables).
I am using Progress 8.3b in both GUI on Windows 95 and character on an IBM AIX unix system.
I am very doubtful about a quick solution for this, I have pretty much resigned myself to the way that I am doing it now. The only possible solution I can think of is to develop something in Delphi (which, by the way, tells you that you have declared a variable that never gets used at compile time!) and just process each file individually that way.
Anyway, I live in hope that someone can help me out here cos I have got a hell of a lot of code to work through here!!
Thanks,
James.
I have recently decided to go through a huge lump of old source code and begin to both tidy it up and bring it into the realms of version 8 (from the dark depths of version 6!). Some of the changes will include removing work files and incorporating temp tables and things like that but there is one problem that I seem to be seeing a lot, that is variables that are declared but never used.
My question is, is there a way of checking code for variables that are declared but never used? Currently I am cutting the declaration of the variable out and seeing if it will recompile. It it complains then I paste it back in again (I only do this with standard variables and shared variables, not with new shared variables).
I am using Progress 8.3b in both GUI on Windows 95 and character on an IBM AIX unix system.
I am very doubtful about a quick solution for this, I have pretty much resigned myself to the way that I am doing it now. The only possible solution I can think of is to develop something in Delphi (which, by the way, tells you that you have declared a variable that never gets used at compile time!) and just process each file individually that way.
Anyway, I live in hope that someone can help me out here cos I have got a hell of a lot of code to work through here!!
Thanks,
James.