I have some code in X++ and as soon as it's complete, I want to send the tab keypress. How do I do that?
I've read about the Task method in the form but that isn't what I want. I don't want to change what happens when the user hits Tab, I want the Tab action to happen automatically after I do something in code.
I hope this makes sense.
When you have the selection on button and click tab it takes you to the next button and when you select a field and click on tab it takes you to the next field.
Andrew Huisman said:I want the Tab action to happen automatically after I do something in code.
What are you expecting to happen?
I want to simulate hitting the tab button by x++ code. Like SendKeyPress(Tab).....
#Task //declare task macro
Call it in your method.