General information
Category:
Coding, syntax & commands
>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only