Menu

[r2019]: / trunk / Src / Help / HTML / task_search.htm  Maximize  Restore  History

Download this file

141 lines (140 with data), 5.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!--
* $Rev$
* $Date$
*
* ***** BEGIN LICENSE BLOCK *****
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* The Original Code is task_search.htm
*
* The Initial Developer of the Original Code is Peter Johnson
* (http://www.delphidabbler.com/).
*
* Portions created by the Initial Developer are Copyright (C) 2005-2012 Peter
* Johnson. All Rights Reserved.
*
* ***** END LICENSE BLOCK *****
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text-html; charset=Windows-1252">
<title>
Search the Database
</title>
<link rel="stylesheet" href="../css/codesnip.css" type="text/css">
</head>
<body>
<h1>
<a name="task_search"></a>Search the Database
</h1>
<p>
You can search the code snippets database for text, by compiler or for
cross-referenced snippets. You can also manually select which snippets are
displayed.
</p>
<p>
Once a search is performed only those snippets matching the search
criteria are displayed.
</p>
<p>
Text and compiler searches can be configured to either operate on any
previous search results, effectively refining that search or to operate on
the whole database, discarding any previous search results.
</p>
<p>
Cross reference searches and manual selections always operate on the whole
database with any existing search results discarded.
</p>
<p>
Serach results can be discarded by clicking the
<img alt="Show All button" src="../images/FindClear.gif" class="glyph">
<em>Show All</em> toolbar button or by selecting <em>Search | Show
All</em>. Following this all snippets are displayed.
</p>
<h2>
Text search
</h2>
<p>
You can search for all snippets containing one or more words. Use the
<img alt="Find Text button" src="../images/FindText.gif" class="glyph">
<em>Find Text</em> toolbar button (or select <em>Search | Find Text</em>)
and enter the search text in the
<a href="dlg_findtext.htm">Find Text Dialogue Box</a>.
</p>
<h2>
Compiler search
</h2>
<p>
You can search for snippets that compile, fail to compile or that have not
been tested on certain compilers. Use the
<img
alt="Find Compiler button"
src="../images/FindCompiler.gif"
class="glyph"
> <em>Find Compiler</em> toolbar button (or select <em>Search | Find
Compiler</em>) and enter the search criteria in the
<a href="dlg_findcompiler.htm">Find Compiler Dialogue Box</a>.
</p>
<h2>
Cross-reference search
</h2>
<p>
This search is provided to enable you to find snippets that are related to
one another. The search finds snippets referenced by the currently
selected snippet. Cross references via the &quot;see also&quot; or
&quot;required snippets&quot; fields can be searched, and searches can be
recursive.
</p>
<p>
To run the search select a snippet in the
<a href="overview_pane.htm">Overview Pane</a> then select <em>Search |
Find Cross Refs</em> and configure the search in the
<a href="dlg_findxrefs.htm">Find Cross References</a> dialogue box.
</p>
<h2>
Manual selection
</h2>
<p>
Using the
<img
alt="Select Routines button"
src="../images/SelectRoutines.gif"
class="glyph"
> <em>Select Snippets</em> toolbar button (or selecting <em>Search |
Select Snippets</em>) you can explicitly choose which snippets are to be
displayed in the <a href="overview_pane.htm">Overview Pane</a>. This is
done in the <a href="dlg_selectroutines.htm">Select Snippets</a> dialogue
box by simply placing a check mark next to the required snippets.
</p>
<p>
The main purpose of this option is to select snippets for inclusion in a
generated Pascal unit. See the <a href="task_generateunit.htm">Generate
Unit</a> task for information about generating a unit.
</p>
<h2>
Saved Searches
</h2>
<p>
The results of a search can be saved to disk using the <em>File | Save
Selection</em> menu option. These search results can be loaded from disk
and any matching snippets selected. Doing this replaces any existing
search results.
</p>
<p>
Note that the search criteria are not saved, just the details of the
snippets that were included in the search results. If any snippets from a
saved search result have been deleted when a result set is loaded, any
references to deleted snippets are ignored.
</p>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.