Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ON ERROR question
#12
Gotcha...

So I thought I'd throw a skeleton together for myself, in case I ever want to take advantage of INCLUDE files.

Main:
Code: (Select All)
Dim Shared erh As Integer
Do
    Cls
    Input "Value for i:"; i
    pete1
    pete2 (i)
    Sleep 5
    If InKey$ = Chr$(27) Then Exit Do
Loop
End

handler:
erh = Err
Resume Next

'$Include: 'Pete1.bm'
'$Include: 'Pete2.bm'

Pete1 library:
Code: (Select All)
Sub pete1
    Print "Pete 1"
End Sub

Pete2 library:
Code: (Select All)
Sub pete2 (i)
    On Error GoTo handler
    Locate i, 20
    If erh Then Beep: Erh = 0: Exit Sub
    Print "Pete 2"
End Sub

Pete
Fake News + Phony Politicians = Real Problems

Reply


Messages In This Thread
ON ERROR question - by TerryRitchie - 08-16-2024, 07:16 PM
RE: ON ERROR question - by RhoSigma - 08-16-2024, 07:51 PM
RE: ON ERROR question - by Pete - 08-16-2024, 08:29 PM
RE: ON ERROR question - by TerryRitchie - 08-16-2024, 09:16 PM
RE: ON ERROR question - by Pete - 08-16-2024, 09:38 PM
RE: ON ERROR question - by TerryRitchie - 08-16-2024, 09:43 PM
RE: ON ERROR question - by Pete - 08-16-2024, 09:54 PM
RE: ON ERROR question - by TerryRitchie - 08-16-2024, 10:00 PM
RE: ON ERROR question - by Pete - 08-16-2024, 10:19 PM
RE: ON ERROR question - by SMcNeill - 08-16-2024, 10:41 PM
RE: ON ERROR question - by RhoSigma - 08-16-2024, 10:58 PM
RE: ON ERROR question - by TerryRitchie - 08-17-2024, 02:53 AM
RE: ON ERROR question - by RhoSigma - 08-17-2024, 02:10 PM
RE: ON ERROR question - by TerryRitchie - 08-17-2024, 06:59 PM
RE: ON ERROR question - by Pete - 08-16-2024, 11:23 PM
RE: ON ERROR question - by Pete - 08-17-2024, 04:24 AM
RE: ON ERROR question - by luke - 08-17-2024, 11:58 AM
RE: ON ERROR question - by eoredson - 09-02-2024, 04:39 AM
RE: ON ERROR question - by Pete - 08-19-2024, 03:15 AM



Users browsing this thread: 19 Guest(s)