Hi,
Thanks for the quick response.
While collecting the code to post, I have found the problem.
The original code in the sample is.
Sub UploadFile (UploadFile, URL) 'Requires a server with write permission.
NOTE.. The Sub name is the SAME as the first parameter IE:UploadFile
So when the code
FileOpen(c1,UploadFile,cRandom)
is compiled USING THE OPTIMISER IN V6.01, it looks as though it's passing the sub UploadFile as a parameter to the function FileOpen()
Change this to..
Sub UploadFile (LocalFile, URL) 'Requires a server with write permission.
then..
FileOpen(c1,LocalFile,cRandom)
This Now Optimises and runs fine.. It's obviously the result of the less forgiving new compiler..
That can only be a good thing.
Best wishes for your excellent product..
Tony Hunt
http://www.gprsdatasystems.com