home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
pocketbk
/
utilsf
/
jbdata
/
JBDATA2.TXT
< prev
next >
Wrap
Text File
|
1995-08-10
|
34KB
|
806 lines
QuickSearch
-----------
There is a quick find which is used by just typing the word you
require to find. Normally, this would only be used from the Line view
although it is available in the Page view. This normally operates on
the first visible field. The search field can be changed either using
the Tab key or, more usefully, using Shift-Psion-T. This brings up a
dialog which allows the search field to be selected ('All' can also be
chosen and this allows all fields to be searched).
In field one the inputted string will only work from the first letter
of the field, in other fields the string to be found can occur
anywhere within the field. This option can be toggled so that field
one searching behaves as the other fields using Shift-Psion-H.
The search string is cleared by pressing Escape. There is also a
timeout which clears the search string after a minute of not
searching. The next find using the same string can be shown using Tab
(in Line mode only - in Page mode use Psion-Tab).
Numeric fields can also be searched in this manner.
There is an option available (using Shift-Psion-U) to toggle between
search all fields or search the single field. The search will react in
the same way as the single field search (i.e. if on the first field,
only fields starting with the letters typed will be matched, otherwise
the entire field is checked for a match). The status of this toggle is
visible on the Menu only as the reverse of the option shown - the
status is saved with the setup.
N.B. When used in the Page view strange results may occur if the first
visible field in Line mode is something other than field one as
the procedure takes the field set in Line mode for its search
even in Page mode. This search field can be displayed and changed
using Shift-Psion-T.
In Memory Sort mode Tab (or Psion-Tab in Page mode) will take you
to the next match but the displayed order may not match the order
in which the items are found (i.e. if, in reality, a record with
the search field 'Brake' has been edited and is therefore
positioned at the end of the file, then this would be displayed
after the search field 'Broke' although the sorted display will
still be shown correctly.
Find Psion-F
----
This is a normal type search and works in the same way as that of
other Apps. There are five additional options:
1. Reverse search - this searches from the end of the database rather
than the front.
2. Single/Multiple - Single works in the usual way, Multiple will
gather all the matches and then display only the
found records as a Marked Records list.
3. Wildcards - This allows wildcards to be used in the search
string (e.g. * and ?). It is important that, if
the compete field is not given, a '*' is placed
at the front and the rear of the string. To
search from the first character of a field omit
the leading '*'.
JBData Page 13
----------------------------------------------------------------------
4. Case Dependent - This allows the selection of case dependency in
the search - the default is case independent.
5. Go to Edit - After finding the search string the program will
automatically go to the edit mode and highlight
the found string. This only works in Single find
mode.
It is also possible to narrow the search with logical statements.
There are two sorts available - the first sort is self explanatory,
the second a little quicker to type.
Currently these are:
and - &&
or - ^^
xor - ^&
not - --
so to look for a record that has 'David' and 'Road' then input 'david
&& road' or 'david and road'. If you wish to use the 'and' variation
and also wish to search for the word 'and' then enclose it in
quotation marks (e.g. "and").
If nothing is found the display will remain where it was before the
search was started.
If you wish to use one of the logical search parameters at the start
of the search string (e.g. 'not road') then preface the string with a
space (i.e. ' not road' - rather than 'not road'). This is also true
for the alternative characters (e.g. ' -- road' rather than
'-- road').
To search for a blank field then use ' not ?'. Do not use the '*' as
this will match none as well as some characters.
There is a problem with searching for a simple asterisk because the
Psion call that searches records only works with wildcards - the
implement a non-wildcard search use '_and *' where '_' is a space.
This will use my own search (which is slower) and wildcards will be
ignored if set so.
To search numeric fields with this command (or Find Field) then a
logical search parameter must be used. This is because the internal
Psion search routine ignores numeric fields so it is necessary to use
the slower routine written by me - to direct to this requires a
logical statement. If only one number is required to be found then,
assuming that number is 12, use ' and 12' with a space before the
'and'. Of course, this will also find 121 or 112 or any number or
string that has 12 in it.
N.B. When searching in Single mode and in Page mode, the find will be
highlighted on the screen. However - the Labels will almost
certainly not be in step with the data. At present there is no
way round this but I hope to fix it in the future.
If Go to Edit is enabled then the Labels may well display out of
step. It is also necessary to terminate the edit in the usual way
(using Escape or Tab) before Psion-G will work as you might
expect.
JBData Page 14
----------------------------------------------------------------------
Find Field Shift-Psion-F
----------
Searches in the same way as the normal search but allows a specific
field only to be searched. If the enhanced logical statements are used
then the find works in exactly the same way as that of the normal find
(i.e. it does not take into account the field selected).
Find Again Psion-G
----------
In Single Find mode this will display the next record that matches the
search criteria.
Global Search and Replace Ctrl-Psion-F
-------------------------
This is a similar function to the Record Search and Replace but allows
the Search to be global (throughout the file). The options are the
Search item and the Replace item and, optionally, the field to search
on. For this field selection to work the choice must be for Single in
'Fields to search'. The choice of the actual field is made in the
'Field' slot. The search is selectable between case dependent and case
independent but, whatever case dependency is selected, the Replace
will substitute the found data with the replacement as typed. Escape
will terminate the Search and Replace option.
During the operation of this procedure the screen will automatically
revert to Page mode - this is not selectable but, after the procedure
has ended, the screen will revert to the previous display.
Once the search string has been found the record in which the item is
will be displayed and the found string highlighted. An option to
replace just this one, not replace, or replace all found matches will
be given. Pressing Escape at this point will terminate the operation
completely.
Jump to Record Psion-J
--------------
To jump to a specific record, if the number of that record is known,
use Psion-J. If an illegal number is inputted then the dialog will
remain active.
Display/Change QuickSearch field Shift-Psion-T
--------------------------------
To quickly find out which field the QuickSearch will look in use this
key combination. The search field will display in a dialog which will
also allow the field to be altered. In previous versions you