Q
Problem solve Get help with specific problems with your technologies, process and projects.

Who's editing what?

We've written our own source management menu so that we can keep track of who edits what source member and when. The menu calls the standard STRSEU command. How can you tell if the user pressed F3 or F12 when they exited from SEU? I.e., we want to edit several members and have the user press F3 after the first one; we want our menu program to know not to edit the next member.

Before your program calls the STRSEU command, retrieve the member text into a variable. Change the first character to a different character. When your program executes the STRSEU, pass the member text. When the user exits, retrieve the member text again to see if the character you changed is in the member description. If it is, the user updated (saved) the member. If not, they used the F3 to exit. Make sure to go update the member description to the correct value after the user has exited and saved the member.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


This was last published in August 2003

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close