Visual Basic

by Banned 21 replies
24
Hello guys, my name is Raakam (Really) and im a major, and im taking programming. Now I am trying to write a program for class. The program is supposed to tell you when assignments are due and what time to do them, with a friendly user interface but i don't know where to start. Could some one help me?
#programming #basic #visual
  • Banned
    [DELETED]
  • What aspect do you need help with? As you are in a programming class couldn't you enlist the help of one of your professors?

    Basically you start by defining the problem that your program will solve. Consider what features you will need, and then design an interface for it - as you are using VB that part is easy. Then write the code to provide functionality for all the objects in your user interface.

    Good luck

    Bill
  • yeah bill is right.. basically create a list of your requirements and section them off into logical groups.. then you need to define the inputs and outputs of each logical group and interaction between them..

    from there break down your groups and define any functionality they are to have and from there you can define any objects you want to create (which would become a class)..

    ie.. you would have an assignment object which may have the properties
    - assignment id
    - assignment name
    - assignment description
    - assignment due date
    - assignment author (linked to an author obejct)

    Author:
    - author id
    - author first name
    - etc

    in you screen you may have a drop down box of authors or a list of assignments. Click on an item and it will be displayed -> get id -> goto your database and read the table (maybe via a stored proc or direct sql) -> fill your object up and display...

    This should give you some idea..

    basically though dont jump into coding without first defining what you need to do and how you will do it..

    steve
    • [1] reply
    • When do you think VB will be outdated? Will it always be supported? If not what will replace it VB.net? Is it wise to learn VB6?

      I am not a mathmatics guru but have heard that VB6 is one of the simpliest to learn, I am planning on learning PHP programming soon, it seems to be pretty easy, just coding with alot of memory of syntax and commands, am I right? Much like a more complicated HTML language.
      • [4] replies
  • What type of application you are developing? If you are developing simple database application it would be easy
  • VB is a great language. Easy to learn and quite powerful.

    If I were you i would start by designing your database schema. For a database i would recommend using XML/XSLT. Visual Studio comes with some pretty good tools to design your xml schema.

    Once your schema is done, on paper or in a program like Visio work out the flow of your application, and also us it to prototype an interface layout.

    Once you get through all that you can use your Visio layout as a work flow model and start building the actual program interface and code.

    As a rule i always test each major piece of code as i go along. Test it throughly, try to make it crash. Fix, move on to next major functionality.
  • PHP is a script language.
    You don't compile it to machine code.

    And you should go for Object Oriented code.
  • It is an user defined language,But comparatively good than others.
  • At first..
    define your problem
    difficulties that end users might be experiencing
    inputs you will be needing
    process you ill be doing
    outputs you will be producing
    errors you might encounter during the process

    create a flowchart
    • [1] reply
    • Good information.Your answer is short and exact I really had the meaning of the problem solving with the output producing development of the managerial process of the programming.
    • [1] reply
    • Hello all My name sheraton and my wife and I are new to the forum. Warm welcome to all.
  • Banned
    [DELETED]
  • Banned
    [DELETED]
  • This is for example for you research moreon date and time functioni am helping ith part of codes:
    Dim dtmTest As Date

    dtmTest = DateValue(Now)

    Dim dtmTest As Date

    dtmTest = TimeValue(Now)

    intDOW = Weekday(Now) ' intDOW = 6


    When necessary to refer to a day of the week in code, VB has a set of built-in constants that can be used instead of the hard-coded values 1 thru 7:

    Constant Value

    vbSunday 1

    vbMonday 2

    vbTuesday 3

    vbWednesday 4

    vbThursday 5

    vbFriday 6

    vbSaturday 7


    Example:

    intMonth = Month(Now) ' intMonth = 8

    Example:

    intDay = Day(Now) ' intDay = 31try to arrange in logic

    best of luck



  • Why not write it in Excel/VBA?
    Fairly easy to do, lots of help forums on the internet to assist you.
  • desertofwater:
    I realize this thread is spread out over a long period of time. But at the chance that you are receiving email notifications I thought I'd respond.

    VB6 is already long outdated. I am a programmer who began my journey in VB4 more than 15 years ago and have followed the various replacement technologies ever since.

    I would recommend skipping straight to VB.net if you can. This jump was pretty big from VB to VB.net, but each successive jump after that is not as hard. My current favorite language/environment is C#.

    Eitherway your original question is the same regardless of the language. Define your problem, then your requirements for the program. Prototype an interface and then add funcitonality.
  • Visual Basic is the third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COM programming model. VB is also considered a relatively easy to learn and use programming language, because of its graphical development features and BASIC heritage.
  • Basically produce a list of your requirements as well as section them off into logical groups then you need to define the inputs as well as outturns of each logical group as well as interaction between them.
  • use VB.net it really easy to use and has OOP.

Next Topics on Trending Feed

  • 24

    Hello guys, my name is Raakam (Really) and im a major, and im taking programming. Now I am trying to write a program for class. The program is supposed to tell you when assignments are due and what time to do them, with a friendly user interface but i don't know where to start. Could some one help me?