The default statement in winrunner
Looking through some code here and have a case statement with a default towards the end of it.
What does this signify no reasonable explanation exists in user guide or online help ??
Also i see multiple rc+= what does this signify ?
I am guessing rc = 0 , rc+= 1 rc+= 2 note rc's obviously in same function.
Re: The default statement in winrunner
From the online help:
<font size="2" face="Verdana, Arial, Helvetica">And again from the online help:
The switch statement consecutively evaluates each of the enumerated case expressions (case_expr1, case_expr2,.... case_exprn), until one is found that equals the initial expression. If no case expression is equal to the specified expression, then the optional default
statements are executed.
<font size="2" face="Verdana, Arial, Helvetica">Regards,
Operator / Example / Meaning
= / a = b / assign the value of b to a
+= / a += b / assign the value of a plus b to a