Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7812623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:34:21+00:00 2026-06-02T04:34:21+00:00

Hey all i am trying to populate an array like so: Dim tmpArray As

  • 0

Hey all i am trying to populate an array like so:

Dim tmpArray As String = ""

Do Until x = Form1.arrayCal.Length
    tmpArray = tmpArray & "," & x
    x += 1
Loop

tmpArray = Replace(tmpArray, ",1", "1")

Dim arrDaysInMonth As String() = {tmpArray}

Dim arrNumOfVisits As Double() = {10, 20, 30, 40, 50, 52, 20, 20, 10, 35, 3, 8, 47, 7, 2, 5, 55, 8, 0, 0, 6, 55, 0, 2, 12, 0, 0, 21, 14, 0, 3}

    Me.ChartControl1.Series.Clear()
    Dim s As New DataDynamics.ActiveReports.Chart.Series()

    s.Type = DataDynamics.ActiveReports.Chart.ChartType.Bar2D
    s.Points.DataBindXY(arrDaysInMonth, arrNumOfVisits)

However, it does not seem like i can do it that way.. Doing it this way seems to put it only in a 1D array and not {1,2,3,4,5…} type of array as it needs to be in.

Any help would be great!

David

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T04:34:23+00:00Added an answer on June 2, 2026 at 4:34 am

    I think what you want can be accomplished by this:

        Dim daysCount As Integer = 31
        Dim arrDaysInMonth As String() = New String(daysCount - 1) {}
    
        For index As Integer = 0 To arrDaysInMonth.Length - 1
            arrDaysInMonth(index) = (index + 1).ToString()
        Next
    
        ' arrDaysInMonth(0) = "1"
        ' arrDaysInMonth(1) = "2"
        ' ...
    

    Or maybe you want this:

        Dim arrayCal As String = "1,2,3,4,5,6"
        Dim tmpArray As String() = arrayCal.Split(","c)
    
        ' tmpArray(0) = "1"
        ' tmpArray(1) = "2"
        ' ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all, trying to learn objective-c. It was going quite well, until I realized
Hey All! I'm trying to construct a query that is something like this: Where
Hey all i am trying to use my already array that i populated into
Hey all i have an XML file that i am trying to loop though.
Hey all, I'm trying to work on a simple script that takes a string
Hey all basically I'm trying to save an array of custom objects, it saves
Hey all, I'm currently trying to write a compile-time string encryption (using the words
Hey all i am trying to figiure out why my code is not triggering
Hey all i am trying to understand how to keep my console app open
Hey all i am in need of some help trying to figure out how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.