0 pts.
 STRSEU a member and display a message while edit is starting.
how can I run the command STRSEU and display a message to the user when the source is displayed. the message can be displayed in the TOP command line or anywhere else on the screen. thanks !

Software/Hardware used:
ASKED: November 17, 2005  11:15 AM
UPDATED: November 20, 2009  5:04 PM

Answer Wiki:
I'm afraid that you can't do what you want to do within SEU itself. The ideal place to send your message would be the message subfile at the bottom of the SEU display, unfortunately you can't send a message there until SEU is in the call stack. It may be possible, I haven't tried, to use the QIBM_QSU_LCMD exit point for the SEU User Defined Line Commands and write a program that sends a message to the program message queue from there. Scan Google (or the archives) for references to the exit point. When SEU is loaded there is a copyright message showing at the bottom of the display. If you can find where the message is held you could always change that to the details of your own message (although the copyright text could be generic and used by other applications). Depending on exactly what you want to achieve by displaying a message to the user, does the message have to be on the SEU screen? If it is simply a policy type warning message along the lines of "Only authorised programmers are aloud to use SEU" then I would suggest putting the call to SEU inside your own wrapper program and using either SNDPGMMSG MSG('text') TOPGMQ(*EXT) before the call to SEU or design a screen display and allow the user the chance to back out from loading SEU. Hopefully the above ideas will give you something to think about. Good luck Jonathan
Last Wiki Answer Submitted:  November 18, 2005  5:34 am  by  astradyne   370 pts.
All Answer Wiki Contributors:  astradyne   370 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

How about simply putting the message as comment(s) at the top of your source?

Or am I missing the point?

Maybe you want a changeable message, in which case the wrapper program seems to be the way to go…

Gaz

 0 pts.

 

There is (apparently) no way to make this happen, nor does there seem to be any reason to think it might be possible. This is not especially different from asking how make any other program do something from the outside. It’d be easier just to write a program that did whatever SEU is expected to be doing.

Tom

 107,735 pts.

 

Still using SEU? Time to dump it and use a “real” editor. Like the included in WDSC v7.

 3,115 pts.