I have a function recursively called.
Set obj = DelphiWindow("abc")
Function Y(byval obj)
For i = 0 to 5
Function Z(byval obj)
When function Z is called for first time obj is identified and click operation is performed. But when it is called second time by for loop, object is not idenfied in function Z.
Any ideas why this happens.
Use Byref in the function instead of Byval.
byVal is also not working.
i hope the reference is lost use obj.init /obj.RefreshObject methods
when things gets harder ,the harder gets going
Use the keyword as "Set", while passing the argument and while returning also.
Thanks Chikki, RefreshObject did the trick.