dcsimg

Search:

Type: Posts; User: Joel23

Search: Search took 0.01 seconds.

  1. Re: Help! Backcolor only changes the first element of a control array's color

    Oh! That was it, thanks! I can't believe I didnīt see that :bigyello:
  2. [RESOLVED] Help! Backcolor only changes the first element of a control array's color

    I've createda small code which turns a command button red after pressing it. There are multiple command buttons in the array, all called C2. There are also the C1's and the C0's. This is the code:
    ...
  3. Re: Error 341 "Invalid control array index" after having run properly

    Whooo it worked. The x2 was not what it should be, and after re-checking the code i found out I had a mistake in the formula, which made it give the wrong output when entering 2. Fixed it and it's...
  4. Re: Error 341 "Invalid control array index" after having run properly

    Okay, so I just defined all of my variables, defining x and x2 in the subroutine and as integers
    Now the error still occurs, except that it signals the end of the seventh line this time:

    ...
  5. Re: Error 341 "Invalid control array index" after having run properly

    Thanks.
    I just tested to see if it might have been option explicit, but it doesn't seem to change much whether it's on or not.
    As for having variables/arrays set globally, I have no idea how to......
  6. [RESOLVED] Error 341 "Invalid control array index" after having run properly

    In order to simulate movement using moving backgrounds (BG) I created the following code


    Private Sub Speed_Timer()
    Do Until x > 2
    BG(x).Left = BG(x).Left - 100
    X2 = (4 - 7 * x + 3 * x) / 2...
Results 1 to 6 of 6



Featured


Click Here to Expand Forum to Full Width