dBASE IV 2.0 has an ON KEY LABEL ctrl-m DO <proceedure> command that will perform the proceedure when the "Enter" key is pressed. Using this construct, I open a window and use the BROWSE command to allow a user to select a record. The user must be able to view multiple fields to correctly select the desired record so using an ON SELECTION POPUP construct won't work.
All works well in having the user select the chosen record bypressing the Enter key except that I am unable to close the BROWSE function without the brogram flow returning to the browse window and then having the user press the escape key - a confusing process for the user who just selected the record they wanted with the Enter key. Everything in the dBASE documentation indicates that program flow control should return to the instruction following the BROWSE command upon RETURN from the ON KEY proceedure. Does any one know how to close a BROWSE window from within a proceedure or another way I can accomplish this seemingly simple task?
Thanks,
John
All works well in having the user select the chosen record bypressing the Enter key except that I am unable to close the BROWSE function without the brogram flow returning to the browse window and then having the user press the escape key - a confusing process for the user who just selected the record they wanted with the Enter key. Everything in the dBASE documentation indicates that program flow control should return to the instruction following the BROWSE command upon RETURN from the ON KEY proceedure. Does any one know how to close a BROWSE window from within a proceedure or another way I can accomplish this seemingly simple task?
Thanks,
John