Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (178 - 180 of 3866)

Ticket Resolution Summary Owner Reporter
#2366 Fixed For loop not working as expected Jon BrewManNH
Description

Here's some code I came across that isn't working as it should, at least isn't working as I think it should work.

Global $Array[5] = ["AA", "BB", "CC", "DD", "EE"]
For $I = -1 To $Array
    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $I = ' & $I & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
Next
Global $Array[5][2] = [["AA", "1"], ["BB", 2], ["CC", 3], ["DD", 4],["EE", 5]]
For $I = 10 To $Array
    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $I = ' & $I & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
Next

The output from the code above, when run from SciTE, is this.

@@ Debug(7) : $I = -1 Error code: 0 @@ Debug(7) : $I = BB Error code: 0 @@ Debug(7) : $I = CC Error code: 0 @@ Debug(7) : $I = DD Error code: 0 @@ Debug(7) : $I = EE Error code: 0 @@ Debug(11) : $I = 10 Error code: 0 @@ Debug(11) : $I = 10 Error code: 0 @@ Debug(11) : $I = 10 Error code: 0 @@ Debug(11) : $I = 10 Error code: 0 @@ Debug(11) : $I = 10

The first value of $I is correct, it starts at whatever the For loop starts at, but then the For/Next loop starts acting like a For/In/Next loop. On a 2D array, the second section of code, it just loops for however many elements there are in the array, and the initial value of $I doesn't change. I would have expected this to either error out, because it's referencing an array instead of a number, or run once because there's no end number to reach. I have tested this code on 3.3.8.1, 3.3.6.1, and 3.3.9.5, 3.3.9.11 and they all run the same way. I don't think this should be working the way it is and appears to be a bug.

Reopening this as the bug still exists, see previous bug report ticket

#2519 Fixed AutoIt3Help.exe opens help file to wrong page Jos BrewManNH
Description

In the recent versions of AutoIt, when you open the help file with the AutoIt3Help.exe program it opens the help file to the Introduction page in the Index tab instead of opening it to the Introduction Treeview item on the Contents page or opening to the Index tab, but the search box being empty. This means that you have to delete the text "Introduction" just to search for an item in the index. This didn't happen in older versions.

#2647 Completed Add line count of FileReadToArray to @extended Jon BrewManNH
Description

The function FileReadToArray doesn't return the count of the lines that were read in, so you have to use UBound to get this information or use _FileReadToArray.

My request is to add the line count by setting the @extended variable to the count of lines returned. This wouldn't be a script breaking change, as the current function doesn't use @extended for anything. It's also not unprecedented, as there are other functions that use @extended for similar features, such as the number of bytes downloaded in the InetRead function, StringRegExpReplace uses it for the number of replacements made, etc.

Note: See TracQuery for help on using queries.