Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stepping through field names myfield1, myfield2, myfield
Message
De
01/03/2000 10:43:16
 
 
À
01/03/2000 10:30:17
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00339788
Message ID:
00339808
Vues:
20
>I have a db table that has a series of fields like this....
>
>myfile.butn1
>myfile.cap1
>myfile.butn2
>myfile.cap2
>myfile.butn3
>myfile.cap3
>...
>

This is a bad design, split the table into two:

myfile.rowid
myfile.applystowholeset1
myfile.applystowholeset2
...
myfile.applystowholesetN

mybutn.rowid
mybutn.butn
mybutn.cap

Now it is simply to loop through the buttons and you do not have to change the table structure if you change the max number of buttons. Additionally, you will not be allocating space for buttons that are empty.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform