Home > Archive > FoxPro database connector > February 2006 > Re: How define database path & store database path in .INI FILE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How define database path & store database path in .INI FILE
Cindy Winegarden

2006-02-10, 11:24 am

Hi Sanjib,

If you put a path like C:\Data\FoxProData\ in an INI file (or any text
file), at the beginning of your main program you can use

cPath = FileToStr("...MyINIFile.ini")
OpenDatabase(cPath + "MyDatabase.dbc")

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy_winegarden@msn
.com www.cindywinegarden.com


"sanjib" < sanjibaich2005@examp
le.com> wrote in message
news:F703FB7C-5FFB-4CA0-AD13- ADCA6367F402@microso
ft.com...
> dear Friends
>
> Any body can help , I accept path for database (.dbc file) now i want to
> store this path to application.INI file. database in windows 2000 server.
> or
> how to define database path to get data from server. I am using vfp6.
>
> please help me
>
>
> --
> sanjib



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com