Delete a batch of records from a table
──────────────────────────────────────────────────────────────────────────────
Syntax
H_BatchDelete( aTables , aConditions , lCheck )
Arguments:
aTables - Array of tables and indexes
aConditions - Array of conditions
lCheck - If .T., check if users are logged on
Returns:
NIL
Description:
Structure of aTables is { Element 1 , Element 2 , ... }
where each element is { Table name , Index 1 , Index 2 , ... }
Each table and index should be identified from the directory cDefault
Structure of aConditions is { Element 1 , Element 2 , ... }
where each element is { Condition 1 , Condition 2 , ... }
If any condition evaluates to .T. for a given record,
the record is deleted
Warning - Closes all tables on exit
Examples:
Header File: H_LIB52.CH
Source: BATCHDEL.PRG
Author: Martin Colloby