Control search and replace operations (properties)

<< Click to Display Table of Contents >>

Manual > Screen Creation Guide > Advanced Editing Functions of Panel Editor > Control Search >

Control search and replace operations (properties)

Control search and replace operation (property replace)

This article explains the property replacement operation of the Panel Editor control search function.

 

The control search and replace function (property replace) provides the ability to replace the property setting value with any string.

 

The property replacement operation is performed from the following parts (※ The display of the following parts will change by operating the icon for switching the processing target below).

 

fap_s_0071

 

fap_s_0072

Enter the replacement string.

 

fap_s_0073

This icon switches the replacement process target. To replace properties, select the icon on the left.

*Selecting the icon on the right will switch to "Replace control."

fap_s_0050

Specifies the conditions for processing property replacement.

 

You can choose from the following:

•Replace entire text... Replaces the entire text set in the target column with the search string.

•Replace search string portion... Replaces only the part that matches the search string.

 

fap_s_0019

Replaces the line selected in the search list with the selected line. After the replacement, the selected line remains.

 

fap_s_0021

Replace all lines displayed in the search list at once.

 

fap_s_0023

Replaces the line selected in the search list with only one line, then moves to the next line. This operation is useful when you want to check the lines to be replaced one by one.

 

fap_s_0025

Moves to the next line from the currently selected line in the search list. No replacement is performed.

 

fap_s_0026

Moves from the currently selected line in the search list to the previous line. No replacement is performed.

 

fap_s_0074

Cancels and undoes the replacement.

 

fap_s_0075

Cancels the undo of a replacement (redo).

 

 

You can also select whether or not to include a line in the replacement by checking the following columns in the search list. Clicking the check mark with the mouse will switch the check between ON/OFF, and unchecking it will exclude it from the replacement process. For example, if the line is unchecked, even if you perform the operation "Replace only one line and move to the next line", the replacement process will not be performed and you will move to the next line.

 

fap_s_0076

 

 

The following explains how to perform the replace operation.

 

1.Perform an object search.

 

As an example, we will use the following search criteria:

 

fap_s_0077

 

•Object... Button

•Search criteria: Search within the selection form

 

The search results are displayed in a list. The list shows all the button objects placed on Form01.

 

fap_s_0078

 

 

hint

You can freely customize the columns in the search list. For example, you can add any properties other than those displayed by default. To customize the columns, right-click on the column title on the right side of the search list and select Custom.

 

 

2.Set the conditions for the replacement process.

 

Click the icon (red gear) to set the replacement conditions. In this example, we will set it to "Replace entire text."

To avoid unintended consequences, be sure to check the following settings before making any substitutions:

 

fap_s_0054

 

Setting items

Commentary

Replace an entire character

Among the strings displayed in the column to be replaced,Replaces the entire displayed string with the replacement string..

 

Replace part of search string

Among the strings displayed in the column to be replaced,Replaces only the part that matches the search string with the replacement string..

 

 

 

3.Replace only one line

 

To replace only one line, first enter the replacement string in the following section. In this example, enter "modified".

And in the search results listBe sure to select the column you want to replace in the row you want to replace.Click the Replace One Line icon. In this example, select the Property Value column.

 

fap_s_0079

 

 

The value in the desired row/column was then replaced with "modified".

 

fap_s_0080

 

 

4.Global Replace

 

To perform a bulk replacement, first enter the replacement string in the following area. In this example, we enter "modified".

And in the search results listMake sure to select the column you want to replace (the row position is optional)Click the Bulk Replace action icon.

 

fap_s_0081

 

 

The contents of the selected column ("Comment" in this example) for all rows displayed in the search result list will then be replaced with the specified replacement string ("modified" in this example).

 

fap_s_0082

 

 

5.Cancel (undo) a replacement

 

To cancel the replacement (revert to the state before replacement), you can undo it by performing the following operations.

 

fap_s_0083

 

 

This will cancel the replacement process and revert it to its original state.

 

fap_s_0084

 

 

hint

You can cancel (undo) a replacement operation only until a search for a different keyword is performed in the property search (i.e., while the replaced item is displayed in the search result list).