I added ifdef's around a var declaration since the code using it had them... Also initalized two vars that were questionable if they could reach a state where they weren't assigned. Kent