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?
Thanks in advance,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
You can try SYS(16), but then you have to change code, You may be able to set a breakpoint on a variable and once you hit the breakpoint, you may be able to execute SYS(16) from the Command Window.
Fred
On Tue, May 24, 2016 at 8:03 AM, Joe Yoder joe@wheypower.com wrote:
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?
Thanks in advance,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
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?
Thanks in advance,
Joe
Joe,
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.
Tracy Pearson PowerChurch Software
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
Hi,
Sys(16,1) tells you regards Koen
2016-05-24 17:03 GMT+02:00 Joe Yoder joe@wheypower.com:
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?
Thanks in advance,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]