Yea Perholtz
I herd in vfp 7.0 you must have the menu enabled and running for the function i.e. the edit menu after that just say in the click event of your button;
KEYBOARD '{CTRL+Z}'
or
KEYBOARD '{CTRL+R}'
if this is unclear just let me know
>Hi Stephen, Yes I am using VFP 7.0 -- any ideas?
>
>
>>Hello Perholtz
>>
>>Are you useing vfp 7.0 ??
>>
>>
>>>I am trying to put some undo and redo command buttons on my form that will work against a single edit box exactly like ctrl-z and ctrl-r do. I've tried using the KEYBOARD command in the commandbutton's click event to no avail. However, when the edit box has the focus and I hit ctrl-z on the keyboard, the undo works perfect. Any idea how to harness this undo/redo functionality. Thanks!