Metrologic IS1000 Series Guia do Utilizador Página 158

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 198
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 157
152
CipherLab BASIC Compiler
User's Guide
Syntax
UPDATE_TRANSACTION_EX(file%, N%, data$)
Remarks
"file%" is an integer variable in the range of 1 to 6, indicating which transaction file
to access. The command UPDATE_TRANSACTION_EX(1, N%, data$) works the
same as the command UPDATE_TRANSACTION(N%, data$).
"N%" is an integer variable, indicating the ordinal number of the transaction record
to be updated.
"data$" is a string variable, representing the character string to replace the old data.
Example
...
UpdateTransaction_1:
UPDATE_TRANSACTION_EX(1, Num%, NewData$)
RETURN
...
See Also
GET_TRANSACTION_DATA_EX$, SAVE_TRANSACTION_EX,
UPDATE_TRANSACTION
5.20.2 DBF Files and IDX Files
This one is an index sequential file structure. Table look-up and report generation is easily
supported by using index sequential file routines. There are actually two types of files
associated with this file structure, namely, DBF files and IDX files.
A DBF file has a fixed record length structure. This is the file that stores the data records
(members), whereas, the associated IDX files are the files that keep the information of the
position of each record stored in the DBF file. Yet, such index files are re-arranged (sorted)
according to some specific key values. In addition to the IDX files that are explicitly created
by the user, the BASIC run-time maintains a default IDX file which keeps the original data
sequence.
A library would be a good example to illustrate how DBF and IDX files work. When you
are trying to find a specific book in a library, you always start from the index. The book can
be found by looking into the index categories of book title, writer, publisher, ISBN number,
etc. All these index entries are sorted in ascending order for easy lookup according to some
specific information of books (book title, writer, publisher, ISBN number, etc.) When the
book is found in the index, it will tell you where the book is actually stored.
As you can see, the books kept in the library are analogous to the data records stored in the
DBF file, and, the various index entries are just its associate IDX files. Some information
(book title, writer, publisher, ISBN number, etc.) in the data records is used to create the
IDX files.
For portable terminals, a BASIC program can have up to 5 DBF files. Each DBF file can
have up to 3 associated IDX files, and each of them is identified by its key (index) number.
The valid key numbers are from 1 to 3. The length of the record in the DBF file is limited to
255 bytes.
Vista de página 157
1 2 ... 153 154 155 156 157 158 159 160 161 162 163 ... 197 198

Comentários a estes Manuais

Sem comentários