hi all is there any way of detecting which key in keyboard were pressed? i.e. in C i could “catch” keyboard strokes and also can control if any key were pressed at the same time with another one, like Ctrl+A or Shft+F2… also in Visual Basic i have the KeyPress event which has the KeyAscii variable, from where i can program the application behavior… i would like to take control of all over the keyboard, control every key a user could press, and then execute code depending on which key was pressed, anyone knows how??? some ideas??? regards
C/SIDE does not have a event to capture individual keystrokes.
And C/SIDE is no Visual Basic. Regards Walter
Hi Micki, There is on forms on a textbox the trigger OnInputChange that gets called every time that a key is pressed while typing. But I do not think that you can figure out what the character pressed is. Regards, Cristi Nicola
Originally posted by cnicola
There is on forms on a textbox the trigger OnInputChange that gets called every time that a key is pressed while typing. But I do not think that you can figure out what the character pressed is.
Christian, as I understood, Micky want to gain control everywhere in the application (KeyPress Event), not only in a textbox. From the Attain help: The system executes this trigger after it executes OnBeforeInput. It will continue to execute this trigger, after each keystroke, until the user finishes input. The system then executes the OnAfterInput trigger. If there is an error in the C/AL code you enter into this trigger, the system closes the form. You cannot use this trigger to write to the database. As there is no VAR on this trigger I think there is no possibility to find out which key is pressed [and as Navision can not handle Unicode it would be even more complicated even if you could fetch the pressed character]. Regards Walter
HI All, Our clients hv put up a requirement that while entering master data like customer/vendor etc. or any other journal entries too: The system should suggest possible values for selection from drop down menu based upon user entry. Eg. For customer master: When Say GE systems is the customer,When the user types ‘G’, system should select the number series code for it & return the value to the screen. Abv. discussion gives me a feeling that this will not be possible.Is there any other way?Has anybody done it? Regards, Dharmendra Desai