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

Creating Tables 1

Status
Not open for further replies.

progfox

Programmer
Jun 15, 2003
43
IN
Dear Sir,
Can we create a table naming variable name. I mean to say when we write the name of the table can we pass a variable name with areference at run time.

e.g.
xname=thisform.text1.value
Now.............
create table 'xname'............ like this syntax.



If we can

Please suggest how?


Thanx & Regards

Chandan


 
Hi

cFileName = ALLT(ThisForm.Text1.Value)

CREATE TABLE (cFileName) (cField1 C(10),.....)

Make sure that
There is no file extension used, so that VFP makes .DBF as default
OR the correct file extension is used in the cFileName

:)

ramani :)
(Subramanian.G)
 
Thanks for the Instant solution sir

I was vey near to that but I was hesitating in implementing that one

Regards

Chandan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top