hi @ venkat,
i have a function called Fun1()
inside it i want to define a variable which should be static.
something like following:
--------------cut--------------------
--------------cut end --------------
so that each time i call this function ,totalSales should remain static.
Qtp pops an error messageBox while defining totalSales as Static.
when i tried this function without QTP , it works well.
i have a function called Fun1()
inside it i want to define a variable which should be static.
something like following:
--------------cut--------------------
Code:
Function Fun1()
public Static totalSales = 0
totalSales +=1
End Function
--------------cut end --------------
so that each time i call this function ,totalSales should remain static.
Qtp pops an error messageBox while defining totalSales as Static.
when i tried this function without QTP , it works well.