Jump to content

What is wrong here?


Recommended Posts

For $x = 0 To $Numberofgroups Step 1
        $Controlgroupheigth[$x] = (($Controlgroupcontainsmax[$x]-$Controlgroupcontainsmin[$x])*25)+30
    NextoÝ÷ ÙV«¦åzÀÞrV«yÖµêè­×«jëh×6Local $Numberofgroups = 7
Dim $Controlgroupcontainsmax[$Numberofgroups], $Controlgroupcontainsmin[$Numberofgroups], $Controlgroupheigth[$Numberofgroups]

The error:

Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
$Controlgroupheigth[$x] = (($Controlgroupcontainsmax[$x]-$Controlgroupcontainsmin[$x])*25)+30 
$Controlgroupheigth[$x] = ((^ ERROR

Can't see what I "exceeded"...

Thank you :whistle:

Link to comment
Share on other sites

  • Moderators

Dim $Controlgroupcontainsmax[$Numberofgroups +1], $Controlgroupcontainsmin[$Numberofgroups +1], $Controlgroupheigth[$Numberofgroups +1]

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...