Hello All,
Is there a way to run a procedure as an argument of another procedure? For example:
Basically, what I'm trying to achieve here is to run two procedures simultaneously; one of them (Z) contains a Loop, which in my trials so far has prevented the other one from running. If I am on the right track with the above code, what data type should I set for Z and what should I set Z to equal?
Thanks in advance.
Is there a way to run a procedure as an argument of another procedure? For example:
Code:
Private Sub ProcedureA(ByVal X As String, ByVal Y As String, _
[B]Z As ???[/B]) As Boolean
[I]...code here...[/I]
End Sub
'_________________________________________________________________
Private Sub Procedure B()
X = [I]string statement[/I]
Y = [I]string statement[/I]
[B]Z = ProcedureB[/B]
Call ProcedureA(X, Y, Z)
End Sub
Basically, what I'm trying to achieve here is to run two procedures simultaneously; one of them (Z) contains a Loop, which in my trials so far has prevented the other one from running. If I am on the right track with the above code, what data type should I set for Z and what should I set Z to equal?
Thanks in advance.