HI
I can suggest introduction of a timer event.. and in the timer.. keep putting code with keyboard macros
for example..
Add a form property nLevel and intialise it to 0
In the timer event, put the code..
WITH ThisForm
.nLevel = .nLevel+1
IF .nLevel = 1
KEYBOARD '{Cust_code}'
ENDIF
IF .nLevel = 2
KEYBOARD '{Cust_name}'
ENDIF
IF .nLevel = 3
KEYBOARD '{Cust_add1}'
ENDIF
IF .nLevel = 4
KEYBOARD '{Cust_add2}'
ENDIF
IF .nLevel = 5
KEYBOARD '{Cust_add3}'
ENDIF
IF .nLevel = 6
KEYBOARD '{Cust_city}'
ENDIF
ENDWITH
Now given the idea, you can create a demo table with one field.. containing the sequential keyboard input needed.
Prepare it with all the demo values for each level.. and keep looping thru it in the above to match nLevel with record number and inputing the contents of the field
to the keyboard. In that way, you can create a long demo quite easily.
WITH ThisForm
.nLevel = .nLevel+1
GO .nLevel IN myDemoValueTable
KEYBOARD '{&myValueField}'
ENDWITH
The timer event should be fixed suitably. Or you can go a step further and include another field for the timer interval, and set that also along with keyboard value.
Now imagination is your limit..
ramani

(Subramanian.G)