I am about to discuss a very important aspect on one of the Key features of Visual Foxpro which has been stripped without much of a fuss. Yes, I am talking about the browser compatibality of the VFP applications.
Had anyone had a change to use ActiveDoc class in VFP? How many are even actually aware about this? There are a very few who had a chance to use this. Actually it was all about converting your existing VFP application to run from within Internet explorer rather than running it as a Desktop application. And all this could be done in few quick easy steps.
1. Add the ActiveDoc class to your application
2. Run your main program from within the RUN event of the created class object
3. CLEAR EVENTS on the container RELEASE event
4. Set the ContainerReleaseType=1
5. Set the ole object as the MAIN Program
6. Rebuild project
Yes, thats it, and your current VFP application runs right from within a Web browser. It used to support IE 4.0 and above.
There were a few other form based properties which were required to be set, so that the feel and look gets converted to a browser based application rather than a common Desktop based application.
Now, this was all available in VFP 6.0 and 7.0, and it was all part of it. It just disappeared starting VFP 8.0.
I had a chance of discussing this with some of the Microsoft VFP key guys (Email communication) and the reason quoted was "The feature and compatibility had to be removed because of the security concerns involving IE". !!!!!!!!
Only later did I realise that there was Dot Net coming into the big Picture and (Dot Net was getting introduced roughly around the same time)......... well nothing much left to comment here!
VFP is known for its excellent backward compatibility, and this was one of the very good feature (or might be the only feature) which was stripped of VFP without much debate.
It was hard for me to believe a small patch not being developed to overcome a security concern (if at all required...), and that too when we have patches coming up every few weeks (may be days).
Do we really need to degrade something to upgrade something????
Can you just imagine all the current VFP applications getting converted to browser based environment with just a few minor changes? Imagine the impact it can have on all those current applications which people have started to re-develop using some other technology. We all talk about OOPS, Inheritance, Re-usability and what not.....