07-31-2013, 12:15 AM
Assign some unique value just before you wish to Exit the first function. Check for that return value using a conditional statement and Exit if that matches. You can extend this logic to any number of nested function calls, just need to have a unique return key
Hope that helps!
Code:
Function Ex1()
Ex1 = 0
Exit Function
End Function
Function Ex2()
Ret = Ex1()
If Ret = 0 Then
msgbox Ret
'Exit Function
End If
End Function
Call Ex2()
Hope that helps!
Want to fast track your QTP/UFT Learning? Join our UFT Training Course