Prev: check record size before update
Next: Slider math
From: a on 18 Feb 2010 18:44 is there a way to get the actual line of source code of an error that occurs? i.e. source code: a=1/0 error description returns "a=1/0" i can think of an ugly way of doing it, basically put line numbers in the code to get the error line, then compare that to the .frm text and copy the text where it matches on the line number. I am hoping there is a better and easier way.
From: Nobody on 18 Feb 2010 21:23 <a(a)b.com> wrote in message news:evjrn5h19kksf64fhea3k0qg07oefro6sb(a)4ax.com... > is there a way to get the actual line of source code of an error that > occurs? > > i.e. source code: a=1/0 > > error description returns "a=1/0" > > i can think of an ugly way of doing it, basically put line numbers in > the code to get the error line, then compare that to the .frm text and > copy the text where it matches on the line number. I am hoping there > is a better and easier way. Use the free MZTools Addin to add line numbers, and use Erl function to get the line number.
From: mp on 19 Feb 2010 17:33 "Nobody" <nobody(a)nobody.com> wrote in message news:%238E1SqQsKHA.5356(a)TK2MSFTNGP02.phx.gbl... > <a(a)b.com> wrote in message > news:evjrn5h19kksf64fhea3k0qg07oefro6sb(a)4ax.com... >> is there a way to get the actual line of source code of an error that >> occurs? >> >> i.e. source code: a=1/0 >> >> error description returns "a=1/0" >> >> i can think of an ugly way of doing it, basically put line numbers in >> the code to get the error line, then compare that to the .frm text and >> copy the text where it matches on the line number. I am hoping there >> is a better and easier way. > > Use the free MZTools Addin to add line numbers, and use Erl function to > get the line number. but like he says, he then still wants to get the code text at that line number, i thought that was what he was looking for a way to do? mark
From: MikeD on 19 Feb 2010 17:57 "mp" <nospam(a)thanks.com> wrote in message news:e5wUaObsKHA.5036(a)TK2MSFTNGP02.phx.gbl... > > "Nobody" <nobody(a)nobody.com> wrote in message > news:%238E1SqQsKHA.5356(a)TK2MSFTNGP02.phx.gbl... >> <a(a)b.com> wrote in message >> news:evjrn5h19kksf64fhea3k0qg07oefro6sb(a)4ax.com... >>> is there a way to get the actual line of source code of an error that >>> occurs? >>> >>> i.e. source code: a=1/0 >>> >>> error description returns "a=1/0" >>> >>> i can think of an ugly way of doing it, basically put line numbers in >>> the code to get the error line, then compare that to the .frm text and >>> copy the text where it matches on the line number. I am hoping there >>> is a better and easier way. >> >> Use the free MZTools Addin to add line numbers, and use Erl function to >> get the line number. > > but like he says, he then still wants to get the code text at that line > number, i thought that was what he was looking for a way to do? > mark > I missed that at first too, thinking the same as Nobody in adding line numbers and the Erl function. He can't get the actual code. Best he can do is report the line number and then find that line number in his source code. If you don't make your line numbers unique throughout the entire project, the error message should also identify the procedure by name (which has to be a literal string). -- Mike
From: a on 19 Feb 2010 18:41
yes, i want the actual code. If I'm on the road or away from my computer and I get a support email on my blackberry or something, which lists only the line number, it doesn't help me much. If I know the error source, I can perhaps think of what might be happening. looks like i'll have to do it the way i propose...make txt files of the .frm's and do local lookup based on the form name and error line number. Then send that along. thanks for the replies. On Fri, 19 Feb 2010 17:57:33 -0500, "MikeD" <nobody(a)nowhere.edu> wrote: > > >"mp" <nospam(a)thanks.com> wrote in message >news:e5wUaObsKHA.5036(a)TK2MSFTNGP02.phx.gbl... >> >> "Nobody" <nobody(a)nobody.com> wrote in message >> news:%238E1SqQsKHA.5356(a)TK2MSFTNGP02.phx.gbl... >>> <a(a)b.com> wrote in message >>> news:evjrn5h19kksf64fhea3k0qg07oefro6sb(a)4ax.com... >>>> is there a way to get the actual line of source code of an error that >>>> occurs? >>>> >>>> i.e. source code: a=1/0 >>>> >>>> error description returns "a=1/0" >>>> >>>> i can think of an ugly way of doing it, basically put line numbers in >>>> the code to get the error line, then compare that to the .frm text and >>>> copy the text where it matches on the line number. I am hoping there >>>> is a better and easier way. >>> >>> Use the free MZTools Addin to add line numbers, and use Erl function to >>> get the line number. >> >> but like he says, he then still wants to get the code text at that line >> number, i thought that was what he was looking for a way to do? >> mark >> > >I missed that at first too, thinking the same as Nobody in adding line >numbers and the Erl function. He can't get the actual code. Best he can do >is report the line number and then find that line number in his source code. >If you don't make your line numbers unique throughout the entire project, >the error message should also identify the procedure by name (which has to >be a literal string). |