Hi all,
Wonder if anyone could provide some information relating to the use of array variables in KiX.I am working on an administrative script to assign permissions using a custom built Kix script. Here's a section of the code:
Open(9,$LogPath + "\PERMS.CMD",5)
If Open(1, $LogPath + "\" + $InputFile,2)=0
$x = ReadLine(1)
While @ERROR = 0
$InputArray=Split($x,",",-1); Extract tokens from CSV File
WriteLine (9, $UtilPath + "\XCACLS.EXE " + $InputArray + " /C /E /G " + $InputArray + ":" + $InputArray + ";" + $InputArray + Chr(13) + Chr(10))
$x = ReadLine(1)
Loop
EndIf
The problem I have is that, although the code executes and actually completes the WriteLine step, the script then halts with an "array reference out of bounds" error. I have checked all the array values are populated - can't actually see where the problem is.
Any ideas anyone??
Thanks,
Craig
PS. I'm thinking this might relate to the 2D array functions in 2001??
