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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:22:36+00:00 2026-06-12T16:22:36+00:00

I created a program to read/write with data from another program. I set a

  • 0

I created a program to read/write with data from another program. I set a value of 7 (of type memory real) in the program, then when I read the value in visual studio, it gives me a string 7.0000000000000. So I created this conversion snippet which works for data of type int which also gives me a string in VS. I don’t know the difference between these 2 data types but logically if both data types give me a string, I should be able to run this code. Why the memory real data skips the if here?

 if (Regex.IsMatch(value, "^[0-9 ]+$"))
                {
                    ValueBox.Text = Double.Parse(value).ToString();
                }
                else
                {
                    ValueBox.Text = value;
                }

EDIT: I use 2 given dlls, I believe there is a conversion issue in the dll but my code should still work.

EDIT 2: This code is a section from my program, value and other variables are already defined

  • 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-12T16:22:38+00:00Added an answer on June 12, 2026 at 4:22 pm

    Skip the Regex and use TryParse

    Double.TryParse Method

    Int32.TryParse Method

    or can just format “N0”

    d.ToString(“N0”)

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

Sidebar

Related Questions

I created a SQLite database on Android device. The program can read/write to database
I'm creating a socket program to transfer data from one pc to another, but
I have two programs working together to write and read data from a file.
I am writing a C program that will read and write from/to a serial
I've created a program in Eclipse / MinGW / C (project type: C) which
I am writing a program that reads input from one file, then the program
I am making a program that get's it's data from a site that needs
I am trying to use the system calls read() and write(). The following program
I'm seeking for ways to write data to the existing process's STDIN from external
I'm new to C programming. I want to create C program which can read

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.