Found my problem. My declare said FTPOpenFile instead of FtpOpenFile. Apparently the difference in case matters in a declare statement.
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net
If at first you don't succeed, then skydiving definitely isn't for you.