Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (94 - 96 of 3866)

Ticket Resolution Summary Owner Reporter
#600 Fixed Array.au3 in Beta 3.2.13.8 the functions don't work with 2D Array Gary TalivanIBM
Description

i have proved the Beta 3.2.13.8 and, for example, the function _ArraySearch don't work with 2D Array, in Array.au3 the second line of this function is

If UBound($avArray, 0) <> 1 Then Return SetError(2, 0, 0)

and always if the $avArray is 2D returns error 2 because UBound returns 2 and it's diferent of 1

if we change for

If UBound($avArray, 0) > 2 And UBound($avArray, 0) < 1 Then Return SetError(2, 0, 0)

the function accepts 2D Array, the first line of code is in all of the functions in Array.au3.

#603 Fixed _FileReadToArray() does not return an array if the file contains only a single line of text. Gary Bowmore
Description

In AutoIt 3.2.13.8 and previous beta versions _FileReadToArray() does not return an array if the file contains only a single line of text. It does return an array in the Production version 3.2.12.1 of AutoIt

Test script to demonstrate behaviour in current beta

#include <file.au3>
#include <array.au3>
Global $g_sFileName = ''
Global $g_aFile = 0
Global $g_iStatus = 0
Global $g_sMessage = ''

;_FileReadToArray does not return array if file contains only 1 line of text
$g_sFileName = "C:\Data\TestFile_1.txt"
$g_iStatus = _FileReadToArray($g_sFileName, $g_aFile)
$g_sMessage = "@error       " & @TAB & " = " & @error & @CRLF
$g_sMessage &= "$g_sFileName" & @TAB & " = " & $g_sFileName & @CRLF
$g_sMessage &= "$g_aFile    " & @TAB & " = " & $g_aFile & @CRLF
$g_sMessage &= "$g_iStatus  " & @TAB & " = " & $g_iStatus
MsgBox(0, "Bug Test", $g_sMessage)
_ArrayDisplay($g_aFile)

;_FileReadToArray does returns array if file contains more than 1 line of text
$g_sFileName = "C:\Data\TestFile_2.txt"
$g_aFile = 0
$g_iStatus = _FileReadToArray($g_sFileName, $g_aFile)
$g_sMessage = "@error       " & @TAB & " = " & @error & @CRLF
$g_sMessage &= "$g_sFileName" & @TAB & " = " & $g_sFileName & @CRLF
$g_sMessage &= "$g_aFile    " & @TAB & " = " & $g_aFile & @CRLF
$g_sMessage &= "$g_iStatus  " & @TAB & " = " & $g_iStatus
MsgBox(0, "Bug Test", $g_sMessage)
_ArrayDisplay($g_aFile)
#607 Works For Me _GUICtrlListView_SetItemSelected Problem Gary Anomalism@…
Description

In function _GUICtrlListView_SetItemSelected,has memory problem

$pMemory = _MemInit($hWnd, $iSize, $tMemMap) _MemWrite($tMemMap, $pItem, $pMemory, $iSize) $iResult = _SendMessage($hWnd, $LVM_SETITEMSTATE, $iIndex, $pItem, 0, "wparam", "ptr") _MemFree($tMemMap)

Note: See TracQuery for help on using queries.