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

Visual Foxpro Modifing a field name

Status
Not open for further replies.

Martylb

Technical User
Dec 23, 2002
6
US

In Visual Foxpro how can you change the name of field in a program. What will the command look like, I know what the new field name will be.
Example;
Store to Storeid
Change to field name in a program.
 
alter table TblName rename column OldName to NewName

There are a set of alter table commands... check the help.

Brian
 
Hi Martylb

you can use the below sql statement for what you need

alter table tablename rename column colname to newcolname


HTH

[smile] gchandrujs [sunshine]
 
I have a folder with the following tables in it
TRS1230 TRS1227 TRS1220
File4428 File4559 File5249
In Visual Foxpro how do I append all the tables which start with File into one file
So three files will be append into a new table

Martylb
 
HI


nFiles = ADIR(aFiles,"File*.dbf")

FOR i = 1 TO nFiles
cFile = aFiles(i,1)
IF I=1
USE (cFile)
COPY STRU TO myFile
USE myFile
ENDIF
APPEND FROM &cFile
ENDFOR

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top