>> But then dos.getenv has to return an ansitring as well... > >That's true, so what can we do?! >1. Using sysutils >2. Extend the DOS Unit in some way Normally it shouldn't cause any compatibility problems, since ansistrings can be converted to shortstrings on the fly. OTOH, what happens if the calling program is compiled in TP mode? Jonas