Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code for enterkeywords

Status
Not open for further replies.

Mayamin

Technical User
Jul 18, 2003
7
0
0
LB
hi,
I need to write that when I press enter key to do the action A for example but I need to know how I will write the code for the enter key in my program.What is the code for the enter key.
Thank u in advance.
 
you dont have to specify ENTER key, program runs automaticaly after you pres ENTER, continue with line after EXFMT.
 
look after BDUKE - demand from 11.6. 2003, There you are 4 answers about this problem.
 
You can capture if the enter key was pressed in the information data structure.

FSCREENFM CF E WORKSTN
F INFDS(INFDS)

D INFDS DS
D KEYUSE 369 369

C KEYUSE IFEQ '1'

KEYUSE is '1' if enter is pressed '0' if it's not.
 
What I do is code a SELECT group with all the possible function keys (CFxx, CAxx) for that display file record format. The OTHER clause is what happens when the user presses Enter.


"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."

--Leonardo da Vinci

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top