New topic: 

Error handling with Erl()...

<http://forums.realsoftware.com/viewtopic.php?t=29714>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       vbshar           Post subject: Error handling with 
Erl()...Posted: Mon Aug 24, 2009 11:32 am                        
Joined: Fri Aug 21, 2009 9:41 am
Posts: 4              Hi, 

in VB we get all information about an erro using this:

Code:Private Sub Form_Load()
  Dim A As Integer
  
  10   On Error GoTo Form_Load_Error
  
  20    A = (1 / 0)  'WILL GENERATE AN ERROR...
  
  
  30   On Error GoTo 0
  40   Exit Sub
  
  Form_Load_Error:
  
  50    MsgBox Error$ & vbCrLf & "Error line: " & Erl()
  60    Resume Next
  
End Sub


Looking RB docs, i don't see an ERL() function or similar. Can RB tell me the 
error line?

if Yes, are there a way to auto insert line numbers in my code?   
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to