WinAutomation - windows automation software with macro recorder
      2 replies [Last post]
      pctone
      User offline. Last seen 19 weeks 5 days ago. Offline
      Joined: 12/01/2009
      Posts: 3

      Dear All,

      I have really newbie on WinAutomation. Now I try to write some sample code to test it.

      'Set Variable' %no1% = 50

      'Set Variable' %no2% = 200

      'Set Variable' %no3% = %no2% - %no1%

      But the WinAutomation set the "%no3" in Text Value format. So the %no3% show in "200-50", not equal to 150

      Any suggestions are really appreciatie.

       

       

       

       

       

       

      D.M.Altizer
      User offline. Last seen 6 hours 39 min ago. Offline
      Joined: 01/12/2010
      Posts: 193
      Re: Number operation problems

      Instead of writing: %no2% - %no1% try writing %no2- no1%. This should solve your issue. You can apply the same notation to all numerical operations

      __________________

      ==Dedicated Automation Solutions==

      __________________

      ==Dedicated Automation Solutions==

      pctone
      User offline. Last seen 19 weeks 5 days ago. Offline
      Joined: 12/01/2009
      Posts: 3
      Re: Number operation problems

      Thanks a lot. It's work now.