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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie 1

Status
Not open for further replies.

ChicagoDan

Programmer
Jan 10, 2003
2
US
I am working with a Visual Foxpro application. I am VERY new to Visual Foxpro and can't seem to get the command and syntax I need. The application has a command window that will accept any VFP command. I am trying to manipulate the data in one of the free tables used by the application. So far my command looks like:

DELETE FOR SCREEN="PRESORT"
APPEND FROM "c:\Accuzip6 4.0\support\azsettings_new.dbf" FOR SCREEN="PRESORT"

The problem is I am always prompted for a table name in an Open dialog box. How can I open the table azsettings.dbf before I do the delete so that I don't get prompted for the table name.

TIA
 
Use ("c:\Accuzip6 4.0\support\azsettings.dbf") in 0 Slighthaze = NULL
 
HI

SELECT 0
USE myTable && use it with full path specified.
** suitably change the name of myTable.
DELETE FOR SCREEN="PRESORT"
APPEND FROM "c:\Accuzip6 4.0\support\azsettings_new.dbf" FOR SCREEN="PRESORT"

Be careful with what Slighthaze wrote above. By mistake he has suggested to open the table from which you are appending. That could delete your wanted records from the source table whereas you want to delete from yet another table which you have not specified in your question.

:)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Hi slighthaze..
May be you are right.. since you have left out the '_new' in the table opening. But I am not sure. :)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Yes Ramani, as I understood it Tia wanted to select azsettings.dbf before the delete...if I assumed wrongly I hope Tia has a backup :eek:) Slighthaze = NULL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top