Auto It error opening isn studio program

Asked By 0 points N/A Posted on -
qa-featured

Hello,

When I want to load a project this error showed below appears. The project was saved with the same program and I had no error during the saving. Can anyone help me please to fix this error ? Please tell me why is not working now ?

Thanks !

Autolt Error

Line 48770 (File “C:ISN AutoIT StudioAutoit_Studio.exe”):

Error: Array variable subscript badly formatted.

SHARE
Answered By 590495 points N/A #179582

Auto It error opening isn studio program

qa-featured

Since the error is about variable, try opening your script file using a text editor like notepad and then check line 48770. The dialog box indicates that it has a badly formatted variable which is probably because of an incorrectly declared variable. If you are the one who created the AU3 script then checking that line number should show you something to modify.

A variable is simply a place or a location to store data temporarily in the memory for the purpose of accessing it more quickly. In AutoIt, a variable must begin with a dollar sign “$” and may only contain letters, numbers, and underscore “_”. Examples are $var2, $variable_S, or $MY_variable. Also note that variables are case insensitive.

When declaring a variable, you can create it using Local or Global keywords. For example, to declare a local variable, you should put:

  • Local $vVariable

It is also possible to declare multiple variables at once like:

  • Global $vVariable1, $vVariable2

An array, on the other hand, is also a variable but it contains series of data elements. Here’s an example of declaring an array:

  • $aArray[0] = "A"
  • $aArray[1] = "U"
  • $aArray[2] = "X"
  • $aArray[3] = "3"

To access a certain value in the array, you should use the index number:

  • $sString = $aArray[2]

To learn more about declaring variables, do visit Language Reference Variables.

Related Questions