Ask a Question

Adding numbers in tbamount box issue

nos
New Contributor

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 6
YMinaev
Staff

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?

------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
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

YMinaev
Staff

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?

------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
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
YMinaev
Staff

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?

------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
nos
New Contributor

Thanks a million, it works
cancel
Showing results for 
Search instead for 
Did you mean: