insert values into a grid
I start with my code in VB-Script.
MyArray = Array(4,116,"GSBegin",3,4,"GSEnd")
'I try to insert the array values into a grid
set w_AfxOleControl42 = Sys.Process("TresorZae").VBObject(Form1).Window("A fxOleControl42") .Window("Edit","",2)
i = 0
while MyArray(i) <> "GSBegin"
'changes to a new grid with key F5
i = i+1
I have the following problem:
At Index 1 of the Array, it only inserts 16 instead of 116 into my grid, but it inserts the other values correctly into the grid.
I don't know, if it is a VB Error, or a Test Complete Error?
After 3 or 4 times starting my script, it inserts only 6 instead of 116 into my grid, with the same Code in the script?
Re: insert values into a grid
It's possible that the cause of the problem is that TestComplete is sending the keystrokes too fast.
Try increasing the value of the "Key pressing delay" setting of your TestComplete's project. See the "Project Properties - Playback Options" help topic for details.
Does this help?