I want to pass 2 objects as arguments to a Sub. When I declare the sub:
Public Sub Something (ByRef A As Object, ByRef B As Object)
it gives me an error, because I have Option Strict On. When I make it Off it works, but I know that Option Strict Off it's not a good programming tactic. Is there a way to use Option Strict On and to manage to pass the Objects as parameters to a fuction?
Public Sub Something (ByRef A As Object, ByRef B As Object)
it gives me an error, because I have Option Strict On. When I make it Off it works, but I know that Option Strict Off it's not a good programming tactic. Is there a way to use Option Strict On and to manage to pass the Objects as parameters to a fuction?