[Gambas-user] How to get codelinenumber and procname (solved - Thanks)

ub2 at ...36... ub2 at ...36...
Sat Nov 30 16:49:12 CET 2013


Dear Fabien, Bruce and Tobias


Gents you're great, my 'issue' is completely solved.
Thanks for your patience!

My code (.. if it helps other newbies)
___________________________________
'Public Sub Button1_Click()
'    Dim $ResVerkn As Result
'    Dim $ModDtm, $CheckVar As String
'    Dim $Testmode As Integer
'
'    $Testmode = 1	'Docu on/off
'
'    '...(Plenty of other code)
'
'    $ResVerkn = HiModSql.Sql2Res("TblVerknAkt", "IDVerkn = 123")
'        $ModDtm = $ResVerkn!ModDtm
'        If $Testmode > 0 Then $CheckVar &= Chr(10) &
System.BackTrace[0] & ": $ModDtm=" & $ModDtm
' 	
'    '...(Plenty of other code)
'
'    If $Testmode > 0 Then
'        Message.Info("$CheckVar collected so far:" & Chr(10) &
'$CheckVar, "ok")
'    Endif
'
'    Catch
'        Message.Warning("Catch Error at " & Error.where & Chr(10) &
"Error: " & Error.code & ", " & Error.text & Chr(10) & " $CheckVar: " &
Chr(10) & $CheckVar, " ok ")
'
'End
___________________________________


Have a nice weekend

Regards
Hubert


Am 30.11.2013 15:10,schrieb Fabien Bodard:
> I'm don't understand what you want here
> 
> 2013/11/30 Bruce <bbruen at ...2308...>:
>> On Sat, 2013-11-30 at 09:46 +0100, ub2 at ...36... wrote:
>>> Dear Fabien
>>>
>>> You're my hero. Thanks!
>>>
>>> The only thing I'm still working on is getting the codelinenumber also
>>> in cases without error.
>> System.BackTrace may help here. But I am tired and emotional so check
>> the help.
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 
> 





More information about the User mailing list