Metrologic IS1000 Series Guia do Utilizador Página 153

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 198
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 152
Chapter
5
BASIC
Commands
147
Syntax
DEL_TRANSACTION_DATA_EX(file%, N%)
Remarks
"file%" is an integer variable in the range of 1 to 6, indicating which transaction file
the command is to affect. The command DEL_TRANSACTION_DATA_EX(1,
N%) works the same as the command DEL_TRANSACTION_DATA(N%).
"N%" is an integer variable, determining how many transaction records to be
deleted and how to delete.
If "N%" is a positive integer, the specified number of records will be deleted from
the top of the transaction file 1, i.e. the oldest records will be deleted.
If "N%" is a negative integer, the specified number of records will be deleted from
the bottom of the transaction file 1, i.e. the latest records will be deleted.
Example
...
PRINT "Discard the latest transaction? (Y/N)"
...
Loop:
KeyData$ = INKEY$
IF KeyData$ = "" THEN
GOTO Loop
ELSE IF KeyData$ = "Y" THEN
DEL_TRANSACTION_DATA_EX(TransFile%, -1)
END IF
...
See Also
DEL_TRANSACTION_DATA, EMPTY_TRANSACTION_EX
EMPTY_TRANSACTION
Purpose
To remove all the transaction data from the default transaction file.
Syntax
EMPTY_TRANSACTION
Remarks
This command will only have an effect on the first (default) transaction file.
Example
PRINT “Remove all the transaction data? (Y/N)”
Loop:
KeyData$ = INKEY$
IF KeyData$ = “” THEN
GOTO Loop
Vista de página 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 197 198

Comentários a estes Manuais

Sem comentários