There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer audio black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware network networking nvidia outlook outlook 2003 outlook express partition printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
noob - Saving all data in delphi


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
comet's Avatar
Member with 35 posts.
 
Join Date: Jun 2004
Experience: Beginner
19-Mar-2005, 07:45 PM #1
Angry noob - Saving all data in delphi
i have 2 groupbox's in form1, and in both i have like 5 checkbox's.i also have a button called btnSave and another called btnLoad. my question is, how can i make it so when i click btnSave, the staus of all the checkbox's (whether they are checked or not) is saved to a file. and when i press btnLoad, they are loaded.
hope i made myself clear.
i really need an answer for this urgently.
thanks in advance.
dttri's Avatar
Senior Member with 163 posts.
 
Join Date: Mar 2005
Location: Saigon, Vietnam
Experience: Intermediate
20-Mar-2005, 07:18 AM #2
Do you know how to process files in Delphi? If the answer is yes, please follow:
*/Read the state of the check boxes and their names
*/Write these values in a file (eg, state.txt), with a consistent format (eg, name1:checked, name2:nochecked ...) name1, name2 is the name of the check boxes, and checked, nochecked is their values. Of course, you could format it with your own.
*/Close the file
*/When you need to load the states, just open the file (state.txt) and read the string in it and check the values of the approriate check boxes.

Hope this help

PS: If you don't know how to process files in Delphi, google it
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:19 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.