代码如下,以前的版本直接弹出 0,0,0,SVN最新版直接报错,
好像以前的版本是直接删除最后一个元素以后,这个数组就不是数组了,最新版认为还是数组,但是没有元素,不知道算不算BUG
#include <Array.au3>
Local $avArray[10]
$avArray[0] = "JPM"
$avArray[1] = "Holger"
$avArray[2] = "Jon"
$avArray[3] = "Larry"
$avArray[4] = "Jeremy"
$avArray[5] = "Valik"
$avArray[6] = "Cyberslug"
$avArray[7] = "Nutster"
$avArray[8] = "JdeB"
$avArray[9] = "Tylo"
While 1
If IsArray($avArray) Then
$XU = Random(0, UBound($avArray) - 1, 1)
;~ ConsoleWrite($avArray[$XU] & @CRLF)
_ArrayDelete($avArray, $XU)
If @error Then MsgBox (1,1,1)
Else
MsgBox(0, 0, 0)
EndIf
WEnd
Cyberslug
JPM
Jeremy
Jon
Valik
Tylo
Larry
Holger
JdeB
Nutster
"F:\???\0 ????\??\test.au3" (30) : ==> ???????????????????.:
ConsoleWrite($avArray[$XU] & @CRLF)
ConsoleWrite(^ ERROR |