if $PLIST is an array that has all processes running on a machine:

Code:
$PList              = QS(Split(ListProcess('.'),@CRLF))



and I try to call each array value by it's index, why do I have to do this:

Code:
For Each $proc In $PList
$processSQL = "INSERT INTO processes(cid,Name,ProcessID,ProcessPath)
VALUES('$cid','"+Split($proc,"*")[0]+"','"+Split($proc,"*")[1]+"','"+Split($proc,"*")[2]+"')"
$ = DBExecuteSQL($objConn,$processSQL)
? "Error @ERROR: @SERROR"
Next



Instead of just being able to use this?:

Code:
For Each $proc In $PList
$processSQL = "INSERT INTO processes(cid,Name,ProcessID,ProcessPath)
VALUES('$cid','"+$proc[0]+"','"+$proc[1]+"','"+$proc[2]+"')"
$ = DBExecuteSQL($objConn,$processSQL)
? "Error @ERROR: @SERROR"
Next



I just don't see what the split() is doing that it's presence not being in my second code is causing it not to work. Also, this does not write to my database, when it tries to write the processes, the first error says, "Error 87: The parameter was incorrect" and then it says, "The Operation Completed Successfully" on the rest only no information is written to the DB. Can anyone help me on either issue?