At 08:23 2016-05-24, "Tracy Pearson" tracy@powerchurch.com wrote:
Joe Yoder wrote on 2016-05-24:
I have a small procedure file, visa.prg. in my current project folder
that
imports data from .csv files. I need to support a slightly different format so I added some debugging code but it does not run. When I made a copy with a different name it worked as expected.
Is there a way to have the system tell me the location of the running
code?
You can kinda figure some of that out through the debugger. I would search for PRGs and Functions/Procedures with of the name you were calling. (Visa I would assume)
VFP doesn't complain when you have two Functions of the same name in a PRG. It runs the last one found in the PRG.
I have not tested, and do not know which will fire when you have a PRG and a Function named the same.
I was recently bit by having two methods in a class named the same. You would think that this would generate a compilation error, but it does not.
My debugging code was not being executed either.
I only discovered it accidentally when I got desperate and started instrumenting the entire class and saw what looked like (and was) a duplicate name.
I suggest that you check this possibility before writing more debugging code (which is not going to get executed anyway).
Sincerely,
Gene Wirchenko