Results 1 to 8 of 8

Thread: Editable Program

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    11

    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?

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Editable Program

    are you talking about updating the actual function of the program, or updating data that the program stores and uses?

  3. #3
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    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).

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    11

    Re: Editable Program

    Hello, I mean updating the data that is stored within the program.

  5. #5
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    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.

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    11

    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!

  7. #7
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    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

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    11

    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
  •  



Click Here to Expand Forum to Full Width