|
Hello Jim, If you haven't already done so, look at Scotts reply. He has the solution for using the Find/Replace dialog nailed although I think the Find/Replace dialog could be improved by adding a radio button for "Replace all with prompt". I think it could easily displace the "Replace and find next" button? How many times have you used that one? > when you do a >find, the found code is highlighted, but paste will not overlay the text. >Can someone tell me why the found highlight is different than the selected >highlight? On the Find/Replace dialog box, press the "Options" button. On the Options page check "Mark found text" and the text string will be marked instead of just being highlighted. >I have a MYFINDNEXT.LX macro >Source for MYFINDNEXT.LX: (compliments of several participants in these discussions) This looks like the FINDNEXT macro I posted awhile back so let me make a suggestion for improvement. While the method the original macro uses for determining if any text is selected works in most situations, Craig Strong discovered a problem with this method when multiple documents are involved and recommended a solution. I researched his solution and concur that it is the correct way for determining if any text is selected and have incorporated the new method into all my macros including the FINDNEXT macro. The modified FINDNEXT macro looks like this: /*----------------------------------------------------------------*/ /* ISD_FINDNEXT.LX */ /* Purpose: Find the next occurance of the selected text string */ /* or if no text string selected find the next occurance */ /* of the previous text string searched for. */ /* */ /* Install: Place macro in LPATH. */ /* In Profile.LX add (with quotes): */ /* 'set action.c-n MACRO FINDNEXT' */ /*----------------------------------------------------------------*/ 'extract blocktype' /* selected block type */ 'extract blockdoc' /* block in document */ 'extract docnum' /* current document */ /* determine if any text selected and if not, find the next occurance of the previously */ /* selected text */ if (blocktype = 'UNSET' | blockdoc <> docnum) then do 'LP_FINDNEXT' end /* Otherwise, find the next occurance of the selected text. */ else do 'LP_FINDSEL' end exit 0 Regards, Brian
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.