I have a COM process which reads in a low level file into VFP tables. I
want to create a create a collection property with information about the
data that was imported.
The structure of the file is below, and I'd like to have the collection
resemble the layout of the file, so that I can drill down into the
collection and see info.
For example, with the example below, the collection might have
an Invoices node, with a value called Count, which is the number
of invoices.
Each invoice returned from the Invoices node would represent an invoice
which contains properties such as a Schedule collection, Schedule count...
It seems to me that I would have to create a class for each node, and during
import add a class for each node type to the collection.
Any ideas?
Agency
Station
Payee
File Comments
Invoice Header 1
Invoice Comments
Schedule Line 1
Detail Record 1
Detail Record 2
Detail Record 3
Schedule Line 2
Detail Record 1
Detail Record 2
Detail Record 3
Invoice Header 2
Invoice Comments
Schedule Line 1
Detail Record 1
Detail Record 2
Detail Record 3
Schedule Line 2
Detail Record 1
Detail Record 2
Detail Record 3
Invoice Total
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people