I have the following code attached to a button which takes a value that I have inputted into an undefined field on the form and should insert that number of records, filling the first field with a space. For instance I may want 10 blank records before the normal records start in a table ( does this make sense?)
var
i, x longint
endvar
edit()
i=spaces.value
moveto("PartNo")
for x from 1 to i
insertrecord()
sleep()
sendkeys("{vk_space}")
dodefault
endfor
endedit()
This code fails to insert a space into the field. I am sure it is something simple.
Thanks
Lewy
var
i, x longint
endvar
edit()
i=spaces.value
moveto("PartNo")
for x from 1 to i
insertrecord()
sleep()
sendkeys("{vk_space}")
dodefault
endfor
endedit()
This code fails to insert a space into the field. I am sure it is something simple.
Thanks
Lewy