J Trahair
Well-known member
Hi everyone.
In VB6 there was On Error Resume Next which crashed through a procedure from top to bottom, errors or no.
Is there the same in Try/Catch?
Eg.
Public Sub ConvertScreenFont()
Dim i As Long
On Error Resume Next
For i = 0 To Me.Controls.Count - 1
Me.Controls(i).FontName = "Arial"
Next i
End Sub
In other words, some controls don't have a FontName but I don't care!
Also, what is the name of the exception when the user clicks Cancel on the Printer dialog? As in:
Catch e As CancelPrintRunException
Thanks in advance.
In VB6 there was On Error Resume Next which crashed through a procedure from top to bottom, errors or no.
Is there the same in Try/Catch?
Eg.
Public Sub ConvertScreenFont()
Dim i As Long
On Error Resume Next
For i = 0 To Me.Controls.Count - 1
Me.Controls(i).FontName = "Arial"
Next i
End Sub
In other words, some controls don't have a FontName but I don't care!
Also, what is the name of the exception when the user clicks Cancel on the Printer dialog? As in:
Catch e As CancelPrintRunException
Thanks in advance.