The_Vulcan
August 21st, 2003, 04:11 AM
How would one go about this ?
say you have a number of input text fields. and ppl feed their orders in.
big mac = 5
mc chicken = 2
lg coke = 0
fillet of fish = 0
cookies = 0
sunday = 2
then once they are done it shows thier order..... without all the menu items.
big mac = 5
mc chicken = 2
sunday = 2
To do this I was going to attempt to have an if statement for each item.
if there was an item ordered a dynamic text box would be created at _x _y...... then add 10 to _x. (to move the next one down the stage)
if there was no item ordered a dynamic text box would not created.
then the next item would be created further down the page as _x was increased with the last menu item created.
So is this the only way to go about creating this, or is there a better way ?
say you have a number of input text fields. and ppl feed their orders in.
big mac = 5
mc chicken = 2
lg coke = 0
fillet of fish = 0
cookies = 0
sunday = 2
then once they are done it shows thier order..... without all the menu items.
big mac = 5
mc chicken = 2
sunday = 2
To do this I was going to attempt to have an if statement for each item.
if there was an item ordered a dynamic text box would be created at _x _y...... then add 10 to _x. (to move the next one down the stage)
if there was no item ordered a dynamic text box would not created.
then the next item would be created further down the page as _x was increased with the last menu item created.
So is this the only way to go about creating this, or is there a better way ?