Hello BradV,

This line will capture all the groups of the ini file, for example:

 Code:
[Group01]
Printer=Print-Group01,Print-Group02
Default=Print-Group01
[Group02]
Printer=Print-Group02
Default=Print-Group02
[Group03]
Printer=Print-Group03,Print-Group01
Default=Print-Group03

the variable $ GrpArray will be an array with the values "Group01" "Group02" and "Group03"

The line which has
 Code:
$GrpChave = split(readprofilestring($file, $Grupo, ''), chr(10))

the variable $GrpChave will also be an array with the values "Printer" and "Default"

the same thing will happen to the variable $Valores
 Code:
 $Valores  = split(readprofilestring($file, $Grupo, $Chave), ",")

The variable $Valores in the part of If $Valores ="Printer" and $Grupo ="Group01" will receive the following values Print-Group01 and Print-Group02

the part of If $Valores ="Default" and $Grupo ="Group01" will receive the following values Print-Group01

I hope you have understood what I tried to explain
_________________________