|
-
Nov 15th, 2010, 02:24 PM
#1
Thread Starter
New Member
Editable Program
Hello,
I just have a quick question to which I have not been able to find a conclusive answer.
I want to create a VB program for my final year project, the contents of which can be editable by the user, for example when new information becomes availabe it can be easily added. Now, I thought that this could be done using the text box, although it doesn't seem to be possible.
I plan to use a database to hold the initial information.
Could I achieve program 'updatability' in a fairly easy manner?
-
Nov 15th, 2010, 02:25 PM
#2
Re: Editable Program
are you talking about updating the actual function of the program, or updating data that the program stores and uses?
-
Nov 15th, 2010, 02:30 PM
#3
Re: Editable Program
If you are talking about adding some new functionality later on, you can add plugins functionality to your program or you can add some scripting interpreter to it which would allow executing scripts stored in external files.
Plugins are easier to implement though.
If, from the other hand, you want simply to update the information your program processes, you will need some external storage (a database or a file/several files).
-
Nov 15th, 2010, 02:31 PM
#4
Thread Starter
New Member
Re: Editable Program
Hello, I mean updating the data that is stored within the program.
-
Nov 15th, 2010, 02:35 PM
#5
Re: Editable Program
The answer is -- do not store the data. This is called 'hardcoding' where 'hard' part means that once you've coded it, it would be hard to change it later. Store the information outside your program. It is the way how things should be done. A program should contain logic to manipulate the data. The data should be stored elsewhere.
-
Nov 15th, 2010, 02:51 PM
#6
Thread Starter
New Member
Re: Editable Program
Thanks for everyone's replies.I was planning on using a database to store the data and connect to that using VB.
The plan was to enable the user to be able to change what they see in a textbox which would then get written back to the database.
Also, if possible, it would be nice to be able to allow the insertion of pictures, as I know that databases can store pictures
Here's hoping!
-
Nov 15th, 2010, 02:56 PM
#7
Re: Editable Program
Can all of this be achieved yes with out a problem that is what databases are for.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Nov 15th, 2010, 04:39 PM
#8
Thread Starter
New Member
Re: Editable Program
Excellent, thanks for everyone's help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|