Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Bar Charts

Bar Charts

Scheduled Pinned Locked Moved Visual Basic
question
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cedrickdeorange
    wrote on last edited by
    #1

    I am doing a bar chart using a date variable and a double variable. I am having trouble reading in the date. Do I have to read in the date using seperate variables for the date?

    Regards Zeldacat

    L D 2 Replies Last reply
    0
    • C Cedrickdeorange

      I am doing a bar chart using a date variable and a double variable. I am having trouble reading in the date. Do I have to read in the date using seperate variables for the date?

      Regards Zeldacat

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hey Post up a small snippet of code so we can see what is going wrong and trying to help you. By small I dont mean the entire code base but a simplified version of what is happening. You could even try using a small simplified function or here is a crazy idead - test and debug the function (I have heard people do that sometimes). Dan

      At university studying Software Engineering - if i say this line to girls i find they won't talk to me Dan

      C 1 Reply Last reply
      0
      • C Cedrickdeorange

        I am doing a bar chart using a date variable and a double variable. I am having trouble reading in the date. Do I have to read in the date using seperate variables for the date?

        Regards Zeldacat

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        So where are you REALLY reading the date from?? I'm quite sure it's not a bar chart... We'd need to see the code that you're using to read this data.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        C 1 Reply Last reply
        0
        • D Dave Kreskowiak

          So where are you REALLY reading the date from?? I'm quite sure it's not a bar chart... We'd need to see the code that you're using to read this data.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          C Offline
          C Offline
          Cedrickdeorange
          wrote on last edited by
          #4

          I am doing an Example of creating barcharts in VB. I am using two variables Thedate as date = Today Theweight as double The weight is input on a daily basis via a textbox. The date is taken from the pc's calender. I have a sample to go by, which uses integers and doubles as variables. Everything i have tried so far gets errors because of the date. Dim NumberGames As Integer Dim DStreak(144) As Double Private Sub frmPlot_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Streak As Integer 'Open file, load data in arrays FileOpen(1, AppPath() + "mar95.csv", OpenMode.Input) NumberGames = 0 Do Until EOF(1) Input(1, NumberGames) Input(1, Streak) DStreak(NumberGames) = CDbl(Streak) Loop FileClose(1) picPlot_Paint(Nothing, Nothing) End Sub The above code is what i am trying to follow. i hope this helps thanks

          Regards Zeldacat

          D 1 Reply Last reply
          0
          • L Lost User

            Hey Post up a small snippet of code so we can see what is going wrong and trying to help you. By small I dont mean the entire code base but a simplified version of what is happening. You could even try using a small simplified function or here is a crazy idead - test and debug the function (I have heard people do that sometimes). Dan

            At university studying Software Engineering - if i say this line to girls i find they won't talk to me Dan

            C Offline
            C Offline
            Cedrickdeorange
            wrote on last edited by
            #5

            I am doing an Example of creating barcharts in VB. I am using two variables Thedate as date = Today Theweight as double The weight is input on a daily basis via a textbox. The date is taken from the pc's calender. I have a sample to go by, which uses integers and doubles as variables. Everything i have tried so far gets errors because of the date. Dim NumberGames As Integer Dim DStreak(144) As Double Private Sub frmPlot_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Streak As Integer 'Open file, load data in arrays FileOpen(1, AppPath() + "mar95.csv", OpenMode.Input) NumberGames = 0 Do Until EOF(1) Input(1, NumberGames) Input(1, Streak) DStreak(NumberGames) = CDbl(Streak) Loop FileClose(1) picPlot_Paint(Nothing, Nothing) End Sub The above code is what i am trying to follow. i hope this helps thanks

            Regards Zeldacat

            1 Reply Last reply
            0
            • C Cedrickdeorange

              I am doing an Example of creating barcharts in VB. I am using two variables Thedate as date = Today Theweight as double The weight is input on a daily basis via a textbox. The date is taken from the pc's calender. I have a sample to go by, which uses integers and doubles as variables. Everything i have tried so far gets errors because of the date. Dim NumberGames As Integer Dim DStreak(144) As Double Private Sub frmPlot_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Streak As Integer 'Open file, load data in arrays FileOpen(1, AppPath() + "mar95.csv", OpenMode.Input) NumberGames = 0 Do Until EOF(1) Input(1, NumberGames) Input(1, Streak) DStreak(NumberGames) = CDbl(Streak) Loop FileClose(1) picPlot_Paint(Nothing, Nothing) End Sub The above code is what i am trying to follow. i hope this helps thanks

              Regards Zeldacat

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              And the error would be???? I don't anything in this code that has anything to do with a date.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              C 1 Reply Last reply
              0
              • D Dave Kreskowiak

                And the error would be???? I don't anything in this code that has anything to do with a date.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                C Offline
                C Offline
                Cedrickdeorange
                wrote on last edited by
                #7

                sorry I know what you mean. the code i showed is what i am trying to use as an example. but i got myself totally lost. teaching yourself at 52 isn't easy. but i must

                Regards Zeldacat

                C 1 Reply Last reply
                0
                • C Cedrickdeorange

                  sorry I know what you mean. the code i showed is what i am trying to use as an example. but i got myself totally lost. teaching yourself at 52 isn't easy. but i must

                  Regards Zeldacat

                  C Offline
                  C Offline
                  Cedrickdeorange
                  wrote on last edited by
                  #8

                  Thanks to all for the help. I have now resolved my query.

                  Regards Zeldacat

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups