|
-
Jun 24th, 2001, 03:38 AM
#1
Thread Starter
Member
Image5.Move Image5.Left + (700 * a), Image5.Top + 0
help ...
When i enter
a= Int((12 * Rnd) + 1)
Image5.Move Image5.Left + (700 * a), Image5.Top + 0
the image will not move because of the "* a" in the code
if i do
print a
it keeps comming up with 0
but if i go
label1.caption=a
it will print a rnd number between 1 and 12 ...
i need the image to move the rnd number..
-
Jun 24th, 2001, 06:12 AM
#2
I just tryed those 2 lines of code and it seemed to work. The only thing i can think of is, did you get the 2 lines from different subs, because if you did then a is probably a variable local to the sub you set it to a random number, so when you exit that sub it ceases to exist.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|