Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!psuvm!UWOVAX!TREVORC From: trevorc@UWOVAX.UWO.CA (Trevor Cradduck) Newsgroups: bit.listserv.wp50-l Subject: Re: Reveal Codes in WP Macro Message-ID: <0634865333@uwovax.uwo.ca> Date: 13 Feb 90 04:28:53 GMT Sender: WordPerfect Corporation Products Discussion List Reply-To: WordPerfect Corporation Products Discussion List Lines: 22 Approved: NETNEWS@PSUVM.BITNET Gateway In-Reply-To: <0634852373@uwovax.uwo.ca> of Mon, 12 Feb 90 13:43:11 CST On Mon, 12 Feb 90 13:43:11 CST, Jim Ducey 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 University of Western Ontario, London, Canada ---------