Well, the exist() thingy not returning @ERROR is by design. The readprofilestring() thingy not returning @ERROR is a known Microsoft limitation with the underlaying Windows API - its doesn't return an error code either. I think your just hung-up on a couple of odd-ball functions. For readprofilesting, i think you just have to devine an error code from the data itself. That is to say, if readprofilestring() returns a NULL string, its either because the value doesn't exist or that the INI file itself doesn't exist.

-Shawn

p.s. imho, this catcherror() udf of yours is pretty slick, has anyone come up with a better one ( other than just checking @ERROR all over the place in the mainline) ? not to my knowledge ...

[ 07 May 2002, 22:52: Message edited by: Shawn ]