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

How to save at run time 1

Status
Not open for further replies.

sun11

Programmer
Dec 22, 2009
21
0
0
GB
Hi,

I have a form in which i have title,publisher and artist and dates to select (from date) and (to date)
In my program i just gave a destination folder to save the data which is retrived. the retrived data goes to a table in the folder.
Can i save the table at run time by selecting the folder of my wish.

thanks,
sunil madhav
 
I think you want something like:
Code:
lcFolder = getdir()

if !empty(m.lcFolder)
 select ... from ... into table (addbs(m.lcFolder)+'myTable_'+ttoc(datetime(),1))
endif

Cetin Basoz
MS Foxpro MVP, MCP
 
Sunil,

Are you asking how to prompt the user for a folder? If so, use the GETDIR() function.

You asked if you can "save the table at run time". What do you mean by "save the table". It doesn't really make sense.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
hi mark,

sorry for that..
yes prompting the user to save the details in a folder as per user wish..

thanks,
sun11
 
hi cbasoz,

Thanks for the sol.. I'll try it out..
Thanks
sun11
 
hi cbasoz,

thanks for the solution..
Problem solved...

Thanks,
sun11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top