Design Time Errors

Also called Sytax Errors.


The following blocks of code all compile and run correctly, despite the syntax mistakes


"End Function" closing a Property

Public Property Get Something() As String 
   Something = "text"
End Function

"End Sub" closing a Property

Public Property Get Something() As String 
   Something = "text"
End Sub

"Exit Function" inside a Property

Public Property Get Something() As String 
   Something = "text"
   Exit Function
End Property

"Exit Sub" inside a Property

Public Property Get Something() As String 
   Something = "text"
   Exit Sub
End Property


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext