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 786623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:04:19+00:00 2026-05-14T21:04:19+00:00

I will get data in DataTable . I am going to iterate data in

  • 0

I will get data in DataTable. I am going to iterate data in foreach. I will have all types of data in Datatable. Now I need to find Double for each item (string) in DataTable. How to find IsDouble for string?

Ex:

I have "21342.2121" string. I need to covert this to Double. But sometimes the data will be "TextString". So I can’t use Double.Parse().

How to handle this?

  • 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-05-14T21:04:20+00:00Added an answer on May 14, 2026 at 9:04 pm

    This is the wrong approach, you’ll need to know up front what each column in the data table represents. Run this program to see what can go wrong:

    Module Module1
        Sub Main()
            Dim value As Double
            If Double.TryParse("1e0", value) Then
                Console.WriteLine("Uh-oh")
            End If
            Console.ReadLine()
        End Sub
    End Module
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 501k
  • Answers 501k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer $(document).ready(function(){ $('#search').live('click',function(eve){ eve.preventDefault(); $.get('/index.php/search_controller/perform/' + $("#your-textbox-id").val(), function(data) { $('#result').html(data); }… May 16, 2026 at 2:10 pm
  • Editorial Team
    Editorial Team added an answer update The nameof operator in C# 6 provides compile time… May 16, 2026 at 2:09 pm
  • Editorial Team
    Editorial Team added an answer Pros: When you delete a row from the Parent table… May 16, 2026 at 2:09 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I haven't used repeaters for much more than showing data from a datatable. I
I have a table of the form CREATE TABLE data { pk INT PRIMARY
I have four DB tables in an Oracle database that need to be rewritten/refreshed
Hi all i have a background worker thread and some unmanaged code dlls ,
I have a master-detail relationship between 2 classes. The master class will contain a
I currently have an application that gets hit with over 20,000 users daily and
I have recently stumbled across an issue where the WPF ListView control seems to
So I'm extremely new to Linq in .Net 3.5 and have a question. I
I'm using Visual Studio 2008 (Asp.net (c#)) and SQl Server 2005 I have a
can anyone generate a query for me. Lets say i have a table sales(saleID,

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.