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

  • Home
  • SEARCH
  • 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 7817881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:23:22+00:00 2026-06-02T06:23:22+00:00

I need to take this string: Dim tmpTry As String = 10, 20, 30,

  • 0

I need to take this string:

Dim tmpTry As String = "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"

And convert it to a double array:

Dim arrNumOfVisits As Double() = New Double(tmpTry) {}

How do i go about doing that?

FYI the arrNumOfVisits goes into a ParamArray System.Collections.IEnumerable()

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-02T06:23:23+00:00Added an answer on June 2, 2026 at 6:23 am
    Dim arrString As String() = tmpTry.Split(New Char() {" "C})
    Dim arrNumOfVisits As Double() = New Double(arrString.Length) {}
    Dim i As Integer = 0
    While i < arrString.Length
        arrNumOfVisits(i) = Double.Parse(arrString(i))
        i += 1
    End While
    

    The above code will do the trick, using regEx on this would be overkill.

    Never the less do try to learn the basic RegEx operations, here are my favorite cheat sheets:
    http://regexlib.com/CheatSheet.aspx?AspxAutoDetectCookieSupport=1
    http://www.cheatography.com/davechild/cheat-sheets/regular-expressions/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take this example: customer.Salary = Convert.ToDecimal(string.Format({0}! , Console.ReadLine().ToString())); (1) Why in C# we need
I need a PHP function that will take a string as input, and return
I create a string: myOption = "{val1:'text1', val2:'text2'...}" I need convert this string into
i have a string like this.. /home/Abcd/Pradeep/Jack.sh /home/Abcd/Pradeep/Paul/Kill.sh I need to take Jack.sh and
I need some help adding conditions to a linq query. Take this small example
I need a little help with this.. I need to take only the numbers
This is my first post here. I have a problem. I need to take
It would take too long to explain why I need this, but I was
I need to take the mouse click position in float or double, how can
I'm trying to take values from this string: -webkit-gradient(linear, right top, left top, color-stop(0,

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.