Link to home
Start Free TrialLog in
Avatar of cmmcginn
cmmcginnFlag for United States of America

asked on

Utility: Which fields have been accessed by a program ??

Is there a utility that can tell me which data items in my programs have been used after I run the programs?

Thanks,

CM
Avatar of dds110
dds110

None that I know of, but, what I've done in the past is use the On_Change event of the controls I wish to monitor and then write their names to an array.  I currently have a program in the works that monitors text boxes for a change and if one is changed, enables a save button.

It's a bit ugly, but it works.

dds
Avatar of cmmcginn

ASKER

I see.  I was actually thinking about monitoring the use of variables, constants, etc. that are in my programs.

Thanks,

CM
ASKER CERTIFIED SOLUTION
Avatar of PockyMaster
PockyMaster
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.  I'll take a look.

CM
Looks to me like Project Analyzer finds dead code, that is, subs that are not called from anywhere in the program, variables that are declared but not assigned, but it does this by static analysis of the code.  Doesn't matter how many times or ways one runs the program, dead code will never execute

My reading of the questions is that he's looking for coverage analysis, that is, during a given run of a program which subs were called, which variables assigned and which were not.  If Project Analyzer does that, great, if not, I'd like to know what tool does.