Originally Posted By: kelp7
Interestingly when I execute:

 Code:
$aColors = Split(ReadProfileString('PrinterData.ini', $PModel), @CRLF)


I get a message from Kix saying "ERROR : invalid method/function call: missing required parameter 3!"

....


ReadProfileString requires three parameters. First the file, second the section and third the value. So something like $aColors = Split(ReadProfileString('PrinterData.ini', $PModel, value), @CRLF) should do the trick. Off course the name of the value needs to be modified to fit your ini file.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.