I know what you mean - VFP didn't look anything like what I came from either when I first started. But it's actually very friendly to work with.
You indicated that you have VFP6. That would be the place to start. When you run VFP6, you get a blank white screen with a command window in it. The command window is where you enter all your commands. Results of commands are displayed in the screen area unless you specify otherwise. In this mode, VFP is an interpreter - your procedural commands are compiled and executed immediately.
VFP has a robust procedural language to go along with the database handling. You can create program files and execute them realtime without having to compile them - VFP compiles them automatically.
So, to get you started, copy the code in my prior post into the clipboard, then type:
in the command window. This is short for
which is VFP-ese for
Code:
"EDIT TAGS.PRG".
Then paste the clipboard into the edit window that popped up when you entered the MODI COMM command.
Click the Save icon and then the RUN icon. YOu might have to move the edit window to see the results.
One trick that will save you much confusion about the VFP development environment is that the commands in the command window can be re-executed simply by placing the cursor on the line of the command you want to re-execute and pressing enter. Only the command on that line will re-execute. Commands below or above will not. So if you execute TAGS.PRG and want to run it again, just click on the line that says DO TAGX.PRG and press enter.
If you don't have a VFP reference book and you're going to be using VFP for awhile, you should invest in one. I like the Microsoft Press books best myself, but there are lots of them. You can't go wrong with any book by Tamar Granor.
Lastly, I would caution about using VFP6 to mess with a VFP7 application. I would recommend getting VFP7, especially if you will be modifying the application. Later on you're going to want to upgrade to VFP8.
VFP6 should be OK to look at the data though.
Oh, one last thought: If your a DBA-type, you need to know that pre-VFP8, SQL is not as robust as you are used to. So if you execute a SELECT statement in the command window and it gets a syntax error, you are probably doing something VFP's flavor of SQL doesn't support.
Hope this helps!
Mike Krausnick
Dublin, California