Skip to content

BD_INSTRUMENT_SEARCH

Henrik edited this page Sep 8, 2022 · 10 revisions

BD_INSTRUMENT_SEARCH(search; maxcount; RemoveRange)

Help function to search for Instrument and InstId.
Will search for Global instruments if you have access.

Syntax Description Required Type Sample
search name of instrument yes string "abb"
maxcount return max hits. (default=1) no int 10
RemoveRange clear old data no string range "A2:C100"

RemoveRange

Search order

  1. If name is full match with search. Then always first in hitlist.
  2. If name starts with search. Then add first in hitlist.
  3. If name constains in search. Then add last in hitlist.

Sample

=BD_INSTRUMENT_SEARCH("abb")

Return first instrument starts with "abb".
If maxcount is not added, only first hit is returned (default=1).

=BD_INSTRUMENT_SEARCH("ab";10)

Return top 10 Instrument with "ab" in name