A 'find and replace' function

Tony Marston - 1st June 2002

Have you ever wanted a 'find and replace' function when amending proc code? Believe it or not one has existed since version 6, but it has never been included in any official documentation. Here is how it works:

  1. While in the trigger editor bring up the 'find' dialog box by pressing f8. This should look as shown in figure 1.

    Figure 1 - the 'find' dialog box

    tip34_01.gif

  2. Enter the text you want find and the text with which you wish to replace it as shown in figure 2. In this example I am replacing all occurrences of 'wine' with 'beer'.

    Figure 2 - the 'find & replace' command

    tip34_02.gif

  3. Note that this only works in one trigger at a time. It will also not do anything if you have not yet made any other amendments to the trigger - I get round this by inserting and removing a single space.

If you wish to perform a 'find & replace' for all triggers within a component in one operation (or even more than one component) then this is what you can do in version 7.2.04 onwards:


Tony Marston
1st June 2002

mailto:tony@tonymarston.net
mailto:TonyMarston@hotmail.com
http://www.tonymarston.net

counter