Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement