Sunday, September 27, 2015

QTP : Swapping Example in VB script


X = 10
y = 15

X = X+Y = 10 + 15 = 25
Y = X- Y = 25 - 15 = 10
X = X -Y = 25 - 10 = 15

Now X becomes = 15 and Y = 10 Values are swapped.



No comments:

Post a Comment