Dec 212017
 
Like Fox+ scatter, only for whole DBF.
File SCATTER.ZIP from The Programmer’s Corner in
Category Dbase Source Code
Like Fox+ scatter, only for whole DBF.
File Name File Size Zip Size Zip Type
SCATTER.DOC 2179 1035 deflated
SCATTER.TXT 582 274 deflated

Download File SCATTER.ZIP Here

Contents of the SCATTER.DOC file


Author: David M. Sampson
Date: 02/26/88

The idea for SCATTER comes from FOXBASE which has SCATTER and GATHER
functions. The difference here is that this function is designed to
bring the entire database file into the array not just one record.
If this is to much for what you want it would be a very simple process
to strip out the part that moves from record to record.

The way the function works is you pass the array identifier, the number
of fields you want to load (starting at the top of the structure), and
the number of records (starting with the current record). SCATTER does
the rest, when you are finished your array (the one passed as the
first parameter) is full of your data. I recognize that this is very
limited and I would encourage you to expand on it then give me feedback
through the phone, BBS, or manual mail.

The 3 "r" functions given with the SCATTER function are used with it
to simulate a multi dimensional array. I got the idea for a 2 dimensianl
array from Nantuckets tech department. I expanded on their idea to make
3 and 4 dimensional arrays. There is no technical limit on the number of
dimensions you can have but for each dimension you have to add 2 more
parameters.

I didn't write a GATHER function because when I wrote SCATTER I didn't need
it, but it should be the very same as the SCATTER except you would
"REPLACE" into the database instead of assigning the value to a
variable/array and you would have to know the starting record number, the
number of records, and the number of fields from the SCATTER process.

I would be interested in seeing the results if anyone developes the GATHER
function. Just upload it onto our BBS and I will make it available to
everyone else to download (if that is what you want, if you don't want
it public, I will just give you my feedback)

The only thing I would request when using the SCATTER function is to mention
my name as the one who wrote it with any documentation that moves with it.
That is the extent of my vanity. (Unless in your opinion you have modified
it to the extent that it is really no longer my function, then I don't care)




 December 21, 2017  Add comments

Leave a Reply