UCIC321@UNLVM.BITNET (Jim Ducey) (02/13/90)
I've written a macro to allow a user to select a files subdirectory while starting WP or while using the program. If the macro menu is shown while reveal codes is on, the text is overwritten and it generally looks bad. On page 431 in the 5.1 manual there is a routine for turning reveal codes off at the start of the macro. The complete routine is listed. The problem is that when the routine is inserted into the menu macro, it doesn't work. Nothing happens. The macro works fine again when the routine is deleted. Any suggestions on how to turn off reveal codes when running a macro would be helpful. THANX.
trevorc@UWOVAX.UWO.CA (Trevor Cradduck) (02/13/90)
On Mon, 12 Feb 90 13:43:11 CST, Jim Ducey <UCIC321@UNLVM.BITNET> said: >I've written a macro to allow a user to select a files subdirectory >while starting WP or while using the program. If the macro menu is >shown while reveal codes is on, the text is overwritten and it >generally looks bad. * * >Any suggestions on how to turn off reveal codes when running a macro >would be helpful. THANX. **** I think your best bet is to use the {STATE} command. This will return the value of 512 if the Reveal Codes is on. You can use the following commands to switch Reveal Codes off: {IF}{STATE}&512~ {;}Returns 0 if Reveal Codes on~ {Reveal Codes} {;}Turns Reveal codes off~ {END IF} Hope this helps - --------- Trevor Cradduck <TREVORC@UWOVAX.UWO.CA> University of Western Ontario, London, Canada ---------