Results 1 to 2 of 2

Thread: Image5.Move Image5.Left + (700 * a), Image5.Top + 0

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    New Zealand
    Posts
    40

    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..

  2. #2
    lord_dude
    Guest
    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
  •  



Click Here to Expand Forum to Full Width