I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi Single User Apps Topic   Print This     

INI file problem

INI file problem in Delphi Single User Apps topic (part of our Pascal and Delphi Coding group).

Quick Search: problem   INI file   INI file problem  
MerLiN
Australia
Hi,
Does anyone know how to make a program process every setting in an ini file?

I have 2 problem settings in my program that can't seem to process the results from the ini file, one is "Always on top" and the other is "minimize to tray". My program can save the settings with no problems but when I run the program and it reads the ini file, if both settings are set to true the program only seems to process one of them.

My guess is because both settings relate to window functions. I tried Application.ProcessMessage but that didn't fix the problem.

Any help or suggestions would be appreciated.

Merlin
http://kickme.to/merlin73
 Posted 16 years ago (Thread Starter)
Comment Quote
About MerLiN -Collapse +Expand
Visit Profile
Approved member.
Member subscribes to this thread with a verified email.
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #9944, 2 reply
Thread Started 9/30/2003 6:58:00 AM
View Counter=3929
Last Reply Posted 9/9/2013 9:03:09 AM)
Location=Australia  
Joined=17 years ago   MB Posts=13  
Angel
 (Inactive)
England
All an inifile does is store whatever information your program tells it to. Since your program is saving to the inifile correctly, I would assume that reading the inifile is also correct. I would guess then, that there is an error/ommission in either the code you use to call the two procedures, or within the procedures themselves.

If you post a snippet of the relevant code here, I am sure one of us will spot whats going wrong.
 Posted 16 years ago
Comment Quote
About Angel -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #9945 (Level 1.1)  Reply to 9944
Thread Started 9/30/2003 7:06:00 AM
View Counter=2
Location=England  
Joined=18 years ago   MB Posts=199  
Most Recent Post
Anonymous Post

these settings are process at application creation and cannot be set from ini file. They have already been set by the time the file is read and cannot be changed by then.

---
Dave
 Posted 6 years ago
Comment Quote

Post ID #15063 (Level 2) and Parent is 9944
Reply Posted 9/9/2013 8:43:11 AM

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1142A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #9944 Counter
3929
Since 4/2/2008

Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech