             LOCKOUT RECORDS FROM A DATABASE USING AN ARRAY

by: Per Kjellqvist, HotSoft, Geneva, Switzerland  -  CS User ID 71540,2311



There are times when it could be useful to make a filter in a database
without relating to what is in a field.

Lets say you currently have a logical field where records are tagged
T or F by users or some other method. To do that in a network means
that as you go through the database and tag, each record has to be
locked. It also means increased size of the database.

An alternative method is to use an array representing each record number
of the database, after setting each array item to T or F your database
filter would then be;
                        SET FILTER TO Array[RECNO()]

resulting in only those records whose array item is T are active.

To see exactly what I mean take a look at the program "lockout.prg".
Try also to compile it to test the lockout function.

You are free to use this utility in any program, modify it, or
not use it at all.

If you found it useful I always like some feedback.
