On Sep 10, 2004, at 10:31 PM, Brian Heibert wrote: > Here's some code in my program > > long if cmd$ = "SHUTDOWN" > SHUTDOWN > end select > > How can I get user input from my edit field like if they say > SHUTDOWN then put any text here Brian, It is not clear to me what is really being asked here. The FB Shutdown is essentially another way to quit a program. If you are looking to shutdown the mac itself, this is not the way to do it. Assuming a quit of the program is the goal, why not just set the quit flag that is used in the main event loop to _ztrue? After the code falls through the main event loop (which would typically be the end of the program) call another FN (like the one shown below as an example) to capture window/edit field data that needs to be saved. do handleevents until gFBquit fn doEndOfProgramCleanUpStuff // check windows and edit fields etc. end. > > So I can get the text after SHUTDOWN and use it > > Brian > > -- >