Tracey
Thank you for your patience
I've located the issue and my attempt to find a way to (partly)
auto-fix a solution is now working exactly how I want it.
Yes, I agree with others that a Try-Endtry would be much better.
My routine is an ambulance at the bottom of the hill.
If I knew where the problem might occur, I would put systems in place
so it wouldn't occur and I wouldn't need such a routine.

Thank you again




On Fri, Aug 12, 2011 at 12:03 AM, Tracy Pearson <[email protected]> wrote:
> Sytze de Boer <[email protected]> wrote:
>
>>I have a small TEMP.PRG and I'm convinced I'm not dreaming
>>
>>on error do trerror with sys(16),lineno(),message(1)
>>am1=9
>>am2=0
>>am3=am1/am2
>>replace qty_onhand WITH am3
>>
>>My error routine tells me xerror(6) = replace qty_onhand WITH am
>>
>>I've replaced this line with
>>replace qty_onhand WITH am3, desc with "12345"
>>My error routine tells me xerror(6) = replace qty_onhand WITH am3, dec
>>with "12345
>>(No "" at the end of the line)
>>
>
> Here is my test program
>
>   CREATE CURSOR testing (amt n(12,2), textval c(100))
>   APPEND BLANK
>   ON ERROR do myError with SYS(16),LINENO(),MESSAGE(1)
>   am1=9
>   am2=0
>   am3=am1/am2
>   REPLACE amt WITH am3
>   ON ERROR
>
>   PROCEDURE myError
>      LPARAMETERS methd, linenum, codeline
>      ?"Method:",methd
>      ?"Line number:",linenum
>      ?"Code:",codeline
>      LOCAL stacklength, stackarray[1]
>      stacklength = ASTACKINFO(stackarray)
>      ?"Stack codeline:",stackarray(stacklength-1,6)
>   ENDPROC
>
> --
> Tracy Pearson
> PowerChurch Software
>
> Sent from my Android phone with K-9 Mail.
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cag1nny_-wmoqmaepezjvwu75fe9-zrjuj-puj_uowzz5x15...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to