Searching for Text in Existing Strings
If you use strings for error messages or form labels in an application, your schema may contain a number of strings.
The String Browser enables you to search for specified text within strings in the same schema so that you do not have to define a new string when there may be an existing or similar string in the schema that you can use.
To search for text in a string
-
Select the Find Text command from the Search menu.
The Search Strings dialog, shown in the following image, is then displayed.
-
In the Search Text combo box, specify the text that you want to locate in another string in the current schema.
-
If you want the exact match by case (where uppercase or lowercase is significant), check the Case Sensitive check box. A search is then performed in all strings in the current schema for text with the same capitalization as the text in the Search Text combo box. By default, searching is case-insensitive; that is, this check box is unchecked.
-
If you want to locate only a complete word, check the Full Word check box. A search is then performed only for full words in strings that match your specified text. By default, any text that matches the specified text is located; that is, this check box is unchecked.
-
Click the Find button to initiate the search for the specified string in all strings in the current schema. Alternatively, click the Cancel button to abandon your search criteria.
If no occurrences of your specified text are located in any string in the schema, a message dialog is displayed, advising you that the search text was not found.
If occurrences of your specified text are located, the Find Text dialog, like that shown in the following example, is then displayed.
The Find Text dialog allows you only to view located strings that match your search criteria. Modify an existing string by making the changes that you require in the editor pane of the String Browser itself. (Alternatively, to delete an existing string, select the string in the list at the left of the String Browser and then click the Delete button.)
When you have viewed the located strings, click the Close button to exit from the Find Text dialog and return focus to the String Browser.
If no located strings meet your requirements but a similar one has been located, you can select that string or text within a located string and then copy it into the editor pane of the Add String dialog. (For details, see "Adding Strings", earlier in this chapter.)