# Find Compiler(s) Dialogue Box

This dialogue box enables snippets to be searched for by their relationship with various compilers. It is accessed from the Search | Find Compiler(s) menu option.

The dialogue works by applying a search criteria to any or all of a selection of compilers.

Choose the compiler or compilers you wish to test against by ticking those required in the Compilers check list. Use the Select All and Clear All buttons to set or clear all check marks. You must choose at least one compiler.

Next you select the compile results you wish to search on in the Criteria drop down list. The possible results are:

- Compiles - finds snippets that compile OK, with or without warnings.
- Compiles with no warnings - finds snippets that compile without warnings.
- Compiles with warnings - finds snippets that compile with warnings.
- Does not compile - finds snippets that do not compile.
- Not tested - finds snippets that have not been tested.

Now choose whether to search for snippets that match the specified compile results for any or all compilers. Do this by selecting the required radio button in the Search logic group box.

You may apply the search across the whole database or, if you have run another search, searching only the snippets selected by the previous search, and so refining that search. The Search scope group box is used to decide which course of action to take.

If you choose to search the whole database any previous search is abandoned before this search is run. This means that if no snippets are found matching your search criteria, the previous search is lost and the whole database will be selected. On the other hand if you choose to refine the previous search and this search fails to find any snippets, the earlier search remains unchanged.

The Search scope group box is disabled if there was no existing search when this dialogue box was opened, and the search operates on the entire database.

## Examples

### Example 1

Suppose you have Delphi 7, Delphi 2006 and Delphi 2010 available and you want to find the snippets that will compile on at least one of them.

First clear any existing selections in the Compilers list box (press Clear all then place a tick next to each of the three compilers). Now select Compiles in the Criteria drop down list and choose Find any compiler in the Search logic box. If you have existing search results displayed in the main window select Search the whole database in the Search scope box and then press OK to run the search. The results will appear in the main window.

### Example 2

You now want to know which of the snippets you found earlier will not compile on both Delphi XE and XE2. Keep the previous search and open the dialogue box again.

The dialogue box will have remembered details of your previous search, so deselect Delphi 7, 2006 & 2010 and select Delphi XE and XE2 in the Compilers list. Now choose Does not compile in the Criteria drop down list and change the search logic to Find all compilers. Ensure that Refine existing search scope is selected and press OK.

You initial search will now be refined to show only those snippets that compile on one of Delphi 7, 2006 and 2010 but fail to compile on both Delphi XE and XE2.