Jens,

Another question, I think Jooel might have raised this issue, it concerns error checking.

You state:
quote:
It returns 0 for successful execution or alternatively an appropriate error code.
As far as I tell your test examples are error free so based upon the samples no error checking is necessary yet other possible senerios exist. Below is a list of other potential senerios:

1) Missing or unopenable file
2) Incorrect magic number
3) Length of the raster block conflicts with width & height specification
4) Intensity level in raster block exceeds pre-specified limit
5) Illegal character encountered

Do you wish an extensive error checking UDF or can we just forget error checking?
_________________________
Jack