08.02.2017, 08:24
every heard of arrays and loop?
You don't have to create separate variable for each vehicle, you just have to create one array with enough space to hold all vehicle info.
While creating vehicle, load vehicle detail from db and store it in variable, you don't need to write code to store info for each vehicle separately you just have to write it once and in a loop.
You don't have to create separate variable for each vehicle, you just have to create one array with enough space to hold all vehicle info.
While creating vehicle, load vehicle detail from db and store it in variable, you don't need to write code to store info for each vehicle separately you just have to write it once and in a loop.

