AllExperts > FoxPro 
Search      
FoxPro
Volunteer
Answers to thousands of questions
 Home · More FoxPro Questions · Answer Library  · Encyclopedia ·
More FoxPro Answers
Question Library

Ask a question about FoxPro
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Markish
Expertise
I can answer general questions related to Foxpro from Version 2.0 to 9.0. I'll try to answer them as quickly as possible.

Experience
I've been into Dbase programming from age of 11. I've worked in versions from FoxPro 2.0 and Foxbase.
Education/Credentials
I've done my B.Tech (IT) with distinction from Anna University, Chennai - India.

 
   

You are here:  Experts > Computing/Technology > Databases > FoxPro > FoxPro2.6

FoxPro - FoxPro2.6


Expert: Markish - 9/10/2008

Question
I want to make a program on FoxPro2.6 which manage addition,deletion and editing records on a .dbf file. I also want a field like emp_code which generate automaticaly.

Answer
Hi Prem,

For adding a record in a DBF, You can use

Use tableA
append blank
replace field1 with value1, field2 with value2,...

For deleting use

use tableA
goto 10  && goes to record 10
delete   && Marks the record for deletion

pack     && Permanently removes the record

For editing, you can use the same

replace field1 with value1, field2 with value2,...

Hope this helps..
Best regards,
Markish

http://markishonline.com


Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.