Hi everyone. I am a beginning AF programmer although I do have a few years in base SAS. I am trying to use a LISTBOX to present choices for a user to select one by tabbing, clicking, or scrolling to. Since I am porting this to a mainframe, I must be able to capture the enter key being used to know when a selection is made. I have been playing with the EVENT() capture and can't seem to get that to work right. Does anyone have any suggestions?
The SCL code is what I am trying to create. I have a listbox on a frame. I populated the listbox and can see movement when I use the mouse or cursor. I want to execute a specific group of SAS code based on the selection from the listbox. How can I know the user 'selected' one of the entries rather than scrolled down using the cursor control?
I have tried both methods and I can get the return code along with the value, however it does not matter if I use the tab or down arrow on the keyboard it appears as if the item was selected when in reality it was just scrolled past. I have tried to capture the enter key being pressed as an EVENT(), but that does not seem to work either.
Again, I haven't worked in a multiple OS environment such as you currently have for a long time, but some of the mainframes differentiate between HIGHLIGHTING, moving through a list with keys, and then SELECTING the highlighted one. I vaguely remember tabing through lists and then using a + key to select in CMS for example. It may be that the selection hasn't happened.