-
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?
-
Re: Editable Program
are you talking about updating the actual function of the program, or updating data that the program stores and uses?
-
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).
-
Re: Editable Program
Hello, I mean updating the data that is stored within the program.
-
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.
-
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!
-
Re: Editable Program
Can all of this be achieved yes with out a problem that is what databases are for.
-
Re: Editable Program
Excellent, thanks for everyone's help!