Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling Arrays
Message
De
08/06/2001 20:48:46
 
 
À
08/06/2001 20:11:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00517273
Message ID:
00517274
Vues:
22
The first idea that came in my mind is : use a mechanism which will put your datas in tables. Follow the next steps:
1.Think the structure of a 90 degrees rounded table. That means, instead of having, i.e., columns id,name,birthdate,address etc. , you will have columns id,recordid,propid,value, and records:1,1,1,'1'/2,1,2,'Marius Zaharia'/3,1,3,'1969-09-11' etc. You will have a rather difficult mission to extract normal records from this table, but this structure has a great advantage: it's very flexible; you can store practically everything here. You need it because you don't know the dimension of data.
2. Create a custom class containing the properties useful for you. The class will have to save programmatically the array(s) on the disk (in the table you created before) and to load them back in the same way, when you need them. This solution takes some time, but your datas will be safe and, as I said before, it is very flexible and independent of the data structure.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform