Denso BHT-200QW Especificações Página 347

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 587
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 346
Chapter 15. Function Reference
339
____________________________________________________________________
SEARCH File I/O function
SEARCH
Searches a specified data file for specified data, and then returns the record
number where the search data is found.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
SEARCH([#]filenumber,fieldvariable,searchdata [,startrecord])
Parameter:
Parameter:Parameter:
Parameter:
filenumber
A numeric expression which returns a value from 1 to 16.
fieldvariable
A non-array string variable.
searchdata
A string expression.
startrecord
A numeric expression which returns a value from 1 to 32767.
Description:
Description:Description:
Description:
SEARCH searches a target field specified by fieldvariable in a data file specified by
filenumber for data specified by searchdata, starting from a record specified by
startrecord, and then returns the record number where the search data is found.
fieldvariable is a string variable defined by a FIELD statement.
searchdata is the data you are looking for.
startrecord is a record number where the search is to begin in a data file. The
search ends when all of the written records have been searched.
If you omit startrecord option, the search begins at the first record (record #1) of the
data file.
If the search data is not found, SEARCH returns the value 0.
A convenient use for SEARCH is, for example, to search for a particular product name,
unit price, or stock quantity in a product master file by specifying a bar code data to
searchdata.
Since the search begins at a record specified by startrecord in a data file and
finishes at the last record, sorting records in the data file in the order of frequency of use
before execution of this function will increase the searching speed.
Vista de página 346
1 2 ... 342 343 344 345 346 347 348 349 350 351 352 ... 586 587

Comentários a estes Manuais

Sem comentários