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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:37:10+00:00 2026-05-29T06:37:10+00:00

How can we save a formula into a table in my operation, I used

  • 0

How can we save a formula into a table in my operation, I used to formula (Formula I can be dynamically created by the user)
formula axample

Variabl1+Variable2*3.2+200

this formula isn’t const.

thanks

  • 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-29T06:37:11+00:00Added an answer on May 29, 2026 at 6:37 am

    I think you have to save the exactly formula in database and when you want to use it, process the formula string using replace method. you should get Variabl1,Variable2 data and use this code:

    string f="Variabl1+Variable2*3.2+200";
    f= System.Text.RegularExpressions.Regex.Replace(f, "Variabl1", TxBxVar1.Text);
    f= System.Text.RegularExpressions.Regex.Replace(f, "Variabl2", TxBxVar2.Text);
    

    and then process f to run the formula. for run you can use

    System.Text.RegularExpressions.Regex.Split(f, "+");
    

    and use this replace code for all math operators that you want.

    note: this is my way. but maybe there is another ways in c# that I don’t know.

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

Sidebar

Related Questions

I want to setup a table that can: Save the data on the user's
How can save data into a XML file without user prompt dialog in Action
I'm developing web app that user can save his/her work to server. The data
I know that I can save all my projects files into repository so deployment
I have a form that the user can save and return to edit. I
I have a form that the user can save and return to edit. I
I have a form that the user can save and return to edit. I
Is there anyway i can save the value of $x into the RAM or
How I can save SQL Server temporary table on cache? Any ideas?
I'm trying to convert this adaptive bayesian rating formula into PHP code: see here

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.