>oHTTP.onreadystatechange= myprogressfunction()
This looks like the beginning of a line in JavaScript. In JavaScript the body of the function would now follow in curly braces. It's definitely not VFP code. OnReadyState is an event. In VFP you have to use the EVENTHANDLER() function to add your own handler.
--
Christof