Nov 25, 2011 at 5:56 AM
Edited Nov 25, 2011 at 6:17 AM
1.) Exact list of files:
Everything that's in the ZIP file along with your new .avfp files and your database. The idea is that you just copy the contents of the ZIP file (with your modified .avfp files and database) to wherever and your app just runs.
2.) Code logic location:
You have several choices:
.avfp files (code goes between the <% %>)
main.prg (a centralized source and pre and post processing for all web requests. For example, set your data access here in the AVFPinit routine)
another prg (where you could centralize source or include classes)
3.) do I just point the user to myfile.avfp file on my site when it is finished?
Yes. However using default.avfp is the standard convention and will give you the option of specifying NO page on the URL (because it defaults to the default.avfp in the included config)
4.) how can I test it locally?
If you can install IIS on your PC you can run it locally and test. See
Installing on your own IIS Server
General advice for your application: find similar code in the demo in the .avfp files. Start by taking the 'View Code' option and looking for the <% %> tags. Then bring the .avfp files up in an HTML editor like MS Expression and work from
there. Any VFP code that you have described should run with NO problem. Calculations and queries can use the EXACT same VFP code you used in your desktop app. The only thing different is the interface. No GUI - replace with HTML.
Another basic thing to understand for those not familiar with web programming: web programs are stateless. One web request will not automatically remember what the last request was. Use the SESSION object to keep track of state and fix
I suspect the real learning curve for most coming from the desktop VFP world is for Web Programming in general, not really AVFP.. Any good web tutorial or book on ASP will probably help a lot. We are using the EXACT SAME objects that Classic
ASP uses: REQUEST, RESPONSE, SESSION. So any examples for using these objects in Classic ASP should be transferable to AVFP.