|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home GeoPack GeoDB Methods SearchData|
|See also: GetClosestItemIDIx, GetClosestLatHighIx, GetClosestLatLowIx, GetClosestLongHighIx, GetClosestLongLowIx|
The method SearchData searches the database for specific data. The method is available in two overloaded versions. While version  allows to specify the search condition in full detail, version  performs a simple search for names. In version  the search is started at the database entry StartSearchAt, version  always searches the entire database.
The parameter Name specifies the name of the item to be searched. The search for names is by default a substring search. In order to force an exact match the Name parameter has to start with an equality symbol (which is ignored by the search). The search is always case insensitive (even when forcing an exact match). ItemType specifies the kind of database entry, and ClassNumber the class number which has to be matched.
Each of the search parameters offers the possibility to ignore it by setting it to a special value:
The function SearchData returns the database entry number of the found database entry. A zero value indicates that no such data has been found.