Thanks Josh, I just tested it and it works, thanks for your prompt help.
>You can always use ON KEY LABEL F10 KEYBOARD '{ALT+X}'. ON KEY LABEL can be tricky because it will actually allow an event to occur between lines of code. However, by using it to put a keystroke in the keyboard buffer you get around this problem because the Alt-X won't be processed until your program hits a wait state anyway.
>
>>Dear all,
>>
>> For example, I have an exit button in my form, I set its caption = (Alt-\
>>
>>thanks
>>Power
Power Wong
Every problem will have a solution, the only problem is that can you find it out.