Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 10th, 2008, 01:50 AM
anks666 anks666 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 anks666 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation Power: 0
Post Help with saving a config file etc

Hey guys im a little new to delphi, i need a little help with making a database prog in which when the program is run the first time it asks the user 'where is the database' located, when the file has been selected either from one the hard disk or a lan server, it saves the location of the file in a ASCII config file. When the prog is run the next time and so on it does not ask the user for the location of the database as it is saved in the config, only asks if its not found at that location anymore, basically a one time prompt at the first start, and again if the file is not found at the location.The second prob is i need to make this program a multiple instance type, so i can run it twice or how man ever times, so i can do a data enter from one console and the other to check the functionality. Im using delphi 6, any help would be appreciated as i have to submit it in a few days .

Thanks

Reply With Quote
  #2  
Old April 10th, 2008, 12:10 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 713 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 48 m 33 sec
Reputation Power: 12
Look up the help on the TIniFile object for storing and retrieving to an ini file.

You will have a multiple instance application by default.
You have to add code to force a single instance application.

Of course, it is up to you to make sure they do not walk all over each other

Clive

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Help with saving a config file etc


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway