Click to See Complete Forum and Search --> : Any Delphi programmers out there??
nuclear
08-12-2000, 09:29 AM
i am developing a program (not to be named yet) and i think its gonna be pretty big. i am having one problem though, how can i make a screen that comes up the FIRST time you run the program asking you for information such as server names, your name, email addresses, etc...and then evertime after that when you run it it will remember that information and display it in text fields?
thanks for the help guys!
CujoRbd
08-12-2000, 09:03 PM
I don't know much about Delphi, but I suppose you could just make a cookie server-side (or client-side, if you wanted to, in which case, you'd probably just put a bit of javascript in it).
I know you can do this in Perl, as well as other languages, so I'd guess you might be able to in Delphi.
If I find any info on writing in cookies in Delphi, I'll post back.
CujoRbd
mel_bagley
08-16-2000, 02:30 AM
There are a few ways you should be able to do this:
I'm not sure how as only recently started to use delphi 5.
1.. Create the form to open when the program loads.
2.. I like the idea of a cookie on the system.
3.. When the program loads it refers to a text file which has the values stored from the first time is loaded. If this text file has no values then the form will be displayed on startup, this way it stays local on your machine.
Let me know if this has given you an idea, its rough but it possible.
mel bagley
mel@praceng.com
qball
08-16-2000, 06:44 AM
Oh-boy........
How is it gonna be real big if you can't even open a window and save user information?
Anyway, the classic case in the winders world is to have an *.ini file (win3.x) or registry keys (95/98/NT). Your app reads info from ini or registry and writes to text fields on the window. If no info exists, nothing to pre-populate. Whenever the user enters new information, it is saved to the ini or registry (assuming it passes validation, if any). The downside to this is the ini or registry keys are 'public' information and can be manipulated outside of your program.
You can get real funky and save info in dynamically created classes, but that is getting pretty hardcore, though very secure.
Good luck and keep learning.
nuclear
08-17-2000, 12:40 AM
yeah guys im trying to learn alot more. if any of you could give me an exampleof how to make a TEdit save info into the registry and load it again on startup or give me a link to where i can read up on this that would be most helpful
thanks
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.