Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to create a collection
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Need to create a collection
Divers
Thread ID:
00912822
Message ID:
00912822
Vues:
40
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform