Forum Discussion

nos's avatar
nos
New Contributor
15 years ago

Adding numbers in tbamount box issue

Hi.



when i try to record a box where i type som numbers in, then when im done with it and stops the recorder. then i play it to watch it, and it ain't putting the numbers in my box, what is wrong?



Best Regards.



Nicklas Sørensen

6 Replies

  • Hi Nicklas,



    Can you describe the problem in detail? What control are you working with, what actions do you perform, what script is recorded, what do you get on playback?

  • nos's avatar
    nos
    New Contributor
    Hi Jared.



    The problem is when i try to add numbers in my box it don't type it in my record. i can see in my script that it has registeret my numbers, but it aint typing it.



    First picture i press the button to get into my second pictures windows



    Second picture is the box ( Amount ) where i type the numbers



    On my record box im told the object box is WinFormsObject("tbAmount")





    Regards.

    Nicklas Sørensen

  • Hi Nicklas,



    Do you get any errors in the log? What code was recorded in your script (post here the corresponding line) - does it use the Keys method? Can you assign a value to the target text box if you use some of its properties - for example, wText, or Value, or Text?

  • nos's avatar
    nos
    New Contributor
    Hi.



    The code it write is:



    Sub Add_Financials

      Dim gotrex

      Dim frmNewReserve

      Dim C1NumericEdit

      Set gotrex = Aliases.Gotrex

     gotrex.FrmMDIMain.MdiClient.frmGoTrexOverview.SplitContainer1.SplitterPanel.panelClaimStudio.ucClaimStudio.panelTop.UcEconomy1.GroupBox1.btnNewReservation.ClickButton

      Set frmNewReserve = gotrex.frmNewReserve

      Set C1NumericEdit = frmNewReserve.GroupBox1.tbAmount

      Call C1NumericEdit.Click(57, 12)

      C1NumericEdit.wText = "770,00"

      frmNewReserve.BtnOk.ClickButton

    End Sub
  • Hi Nicklas,



    Try using the Keys method in the following line:

    C1NumericEdit.wText = "770,00"



    It should look like this:

    Call C1NumericEdit.Keys("770,00")



    Does this help?