Guest_imported
New member
- Jan 1, 1970
- 0
i have a problem?
i have fired a label across the screen using random speed with the following code under the command button in visual basic 5
for a = 20 to 14000 step int(rnd * 12 + 1)
label1.left = a
next a
after this i wanted to fire 2 labels across the screen.I wanted them to start exactly at the same time but finish in different orders instead of finishing together.
i tryed different permutations with the code and a rnd statement after the step but the arrows fired one after each other. i.e the first arrow would fire, and when that had reached the end the second arrow would fire because of the programme order.I tryed to assign variables under the command button . How do i do it. I tryed 2 different variables and 2 for statements and 2 next statements but obvoiusly this caused an error. Can you help me?
i have fired a label across the screen using random speed with the following code under the command button in visual basic 5
for a = 20 to 14000 step int(rnd * 12 + 1)
label1.left = a
next a
after this i wanted to fire 2 labels across the screen.I wanted them to start exactly at the same time but finish in different orders instead of finishing together.
i tryed different permutations with the code and a rnd statement after the step but the arrows fired one after each other. i.e the first arrow would fire, and when that had reached the end the second arrow would fire because of the programme order.I tryed to assign variables under the command button . How do i do it. I tryed 2 different variables and 2 for statements and 2 next statements but obvoiusly this caused an error. Can you help me?