Hi,
I have the following code that brings back the Units & Spares on each page. It then scrolls (page advances) until it reaches the "END". On each page are different Units & Spares. How can I total the number of Units & Spares?
I thought the following would work but of course it's incorrect:
NbrUnits = NbrUnits + NbrUnits
thanks
vzachin
I have the following code that brings back the Units & Spares on each page. It then scrolls (page advances) until it reaches the "END". On each page are different Units & Spares. How can I total the number of Units & Spares?
Code:
Do Until Sess0.Screen.GetString(24, 2, 3) = "END"
Units = Sess0.Screen.GetString(3, 12, 4)
Spares = Sess0.Screen.GetString(3, 28, 4)
Sess0.Screen.SendKeys ("<PF1>") 'page advance
Do While Sess0.Screen.OIA.Xstatus <> 0
DoEvents
Loop
Sess0.Screen.WaitHostQuiet (1000)
Loop
I thought the following would work but of course it's incorrect:
NbrUnits = NbrUnits + NbrUnits
thanks
vzachin