Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  ASTROLIB  >  DBSEARCH

DBSEARCH

DBSEARCH

Name


DBSEARCH

Purpose


Subroutine of DBFIND() to search a vector for specified values

Calling Sequence


dbsearch, type, svals, values, good, [ /FULLSTRING, COUNT = ]

Input


type - type of search (output from dbfparse)
svals - search values (output from dbfparse)
values - array of values to search

Output


good - indices of good values

Optional Input Keyword


/FULLSTRING - By default, one has a match if a search string is
included in any part of a database value (substring match).
But if /FULLSTRING is set, then all characters in the database
value must match the search string (excluding leading and
trailing blanks). Both types of string searches are case
insensitive.

Optional Output Keyword


      COUNT - Integer scalar giving the number of valid matches

Side Effects


The obsolete system variable !ERR is set to number of good values

Revision History


D. Lindler July,1987
      Added COUNT keyword, deprecate !ERR W. Landsman March 2000
      Some speed improvements W.L. August 2008
      Add compound operators, slightly faster WL November 2009
      D. Lindler Aug 2013, added strtrim on values for a string search
      Fix problem with "less than" string searches WL November 2014
      November 2014 fix actually broke things, reverting WL January 2015



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us