Es geht um folgenes Test-Script:
Spoiler anzeigen
$fFile = "\\server\share\order1\dummy.txt"
$4_array = StringSplit($fFile, '', 1)
MsgBox(0,"",$4_array[0])
MsgBox(0,"",$4_array[1]) ; = \
MsgBox(0,"",$4_array[2]) ; = \
MsgBox(0,"",$4_array[3]) ; = s
MsgBox(0,"",$4_array[4]) ; = e
MsgBox(0,"",$4_array[5]) ; = r
MsgBox(0,"",$4_array[6]) ; = v
MsgBox(0,"",$4_array[7]) ; = e
MsgBox(0,"",$4_array[8]) ; = r
MsgBox(0,"",$4_array[9]) ; = \
MsgBox(0,"",$4_array[10]) ; = s
MsgBox(0,"",$4_array[11]) ; = h
MsgBox(0,"",$4_array[12]) ; = a
MsgBox(0,"",$4_array[13]) ; = r
MsgBox(0,"",$4_array[14]) ; = e
MsgBox(0,"",$4_array[15]) ; = \
MsgBox(0,"",$4_array[16]) ; = o
MsgBox(0,"",$4_array[17]) ; = r
MsgBox(0,"",$4_array[18]) ; = d
MsgBox(0,"",$4_array[19]) ; = e
MsgBox(0,"",$4_array[20]) ; = r
MsgBox(0,"",$4_array[21]) ; = 1
MsgBox(0,"",$4_array[22]) ; = \
MsgBox(0,"",$4_array[23]) ; = d
MsgBox(0,"",$4_array[24]) ; = u
MsgBox(0,"",$4_array[25]) ; = m
MsgBox(0,"",$4_array[26]) ; = m
MsgBox(0,"",$4_array[27]) ; = y
MsgBox(0,"",$4_array[28]) ; = .
MsgBox(0,"",$4_array[29]) ; = t
MsgBox(0,"",$4_array[30]) ; = x
MsgBox(0,"",$4_array[31]) ; = t
Also in dieser MsbBox "MsgBox(0,"",$4_array[0])" wird gesagt, das es 32-Arraywerte gibt. Also doch eigentlich von 0 bis 31. Richtig?
Wieso arbeitet das Script aber denn mit 32-Arraywerte, also 0 bis 32? Da war aber noch etwas mit "-1" und da ist doch das Problem bei meinem denken, oder?
Wie kann ich das denn bitte richtig verstehen?