Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FoxPro 2.6 for DOS - Tip: Make your own program generator ... 1

Status
Not open for further replies.

Ams

Programmer
Sep 26, 1999
50
IN
I have made my own program generator in Foxpro 2.6 for Dos. First of all you have to make your programs structured.<br>
Then you'll find that only certain things change for a similar program.e.g. You have a Maintenance program for City Master file ( Fields : CityCode, Cityname). In your program you - add, modify,delete, view ,find - a city. Now consider a Country Master File ( fields : CtryCode,CtryName ). If you write a similar program - add, modify,delete, view ,find - a country; you'll find that by changing only the file and field names in city maintenance program to that of country's - you'll have country maintenance ready.<br>
Go one step further. Find out all the other possibilities, make a program that asks for these options and generates all the required programs.<br>
e.g. suppose you want to write a program open a file. Your program generator would look like this.<br>
<br>
SET DEVI TO FILE &quot;OPENDBF.PRG&quot;<br>
@1,1 SAY 'SELE 0'<br>
@1,1 SAY 'USE ' + filetobeopened<br>
SET DEVI TO SCREEN<br>
<br>
......where filetobeopend is the variable you would be GETting before the above program section. You can also keep the name of prg, as variable.<br>
<br>
I have made a very extensive program generator in this manner. If I have, so you can...<br>
<br>
<br>
<br>
<br>

 
Hello Ams,

Perhaps you can help. I used FoxPro2.5 & 2.6 for DOS until a few years ago, but had to go the Windows way. I have quite a bit of genealogy and would like to put it into a web-page. I'm having difficulty finding a program that converts FoxPro to HTML. Any suggestions?

Thanks,

Gil
 
They have a HTML Printdriver that will convert almost anything to a HTML file.

David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
What is the latest version of Fox Pro for DOS developed?
Where could I find a version of this software either as freeware or to purchase?
 
The last DOS based version of FoxPro was 2.6.
Have no clue on where to get a copy. David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top