### Replace

The Edit | Find and Replace | Replace option works much the same way as the Find option (see "Find"). Once the text is found, however, you can replace that text by using the Replace dialog box.

Replace dialog box

In versions prior to 3.6, you could only search and replace within editable fields in the edit window. For example you couldn't replace

SHOWHITS=NO

with

SHOWHITS=YES

because SHOWHITS= was a constant field. Only the editable portion of the command (the NO to the YES) could be replaced.

With PC-DMIS version 3.6 and above, however, you can now search and replace with any matching string as long as the last part of the string corresponds to an editable field, and as long as it is the only editable field in the string that will be changing.

A Find and Replace Example That Works:

=AUTO/CIRCLE,SHOWALLPARAMS = NO

replaced with

=AUTO/CIRCLE,SHOWALLPARAMS = YES

Notice that the end of the string corresponds to an editable field. Only the last editable field can be changed from the search string.

A Find and Replace Example That Will NOT Work:

You cannot, for example, replace two editable fields in one replace like this:

=AUTO/CIRCLE,SHOWALLPARAMS = NO

cannot be replaced with

=AUTO/LINE,SHOWALLPARAMS = YES

because both CIRCLE to LINE is one editable field and NO to YES is another editable field.

Neither can you do something like this:

=AUTO/CIRCLE,SHOWALLPARAMS

cannot be replaced with

=AUTO/CIRCLE,MYSHOWALL

because the part you want replaced is a constant field.

More:

Find What

Replace With

Match Whole Word Only

Match Case

Pattern Matching

Find Next Bu tton

Replace Button

Replace All Button