|
|
Basically, use InnerText for Elements and Value for Attributes.
|
|
|
|
|
Hi Guys and Gals.
I have a simple question, but for the life of me cant find an answer out there.
I have a string that will contain an Expression: string x = "(2+3)+((7*2)-5)";
I need x to execute now as an expression in order to get the result of the expression.
Eg. decimal y = (2+3)+((7*2)-5); [This is the value from the text string x]
Result in y = 14
Your help will be greatly appreciated or your guidance to a possible workable solution.
Kind Regards,
Elizma
|
|
|
|
|
Try this[^]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"
|
|
|
|
|
Thanx for your help! I tried searching for it before I asked the question, but I guess my search criteria was wrong since the I put in "Convert String To Expression".
I found something that works.
E.g.
string x = "(2+3)+((7*2)-5)";
DataTable dt = new DataTable();
object sumObject;
sumObject = dt.Compute(x, "");
Elizma
|
|
|
|
|
use Reverse Polish Notation
Expression can be analyzed
Often used to calculate the string
|
|
|
|
|
|
Dear All,
I have no. of text files, each file i have to open then find and replace has to do. But i have to update with in the file without create new or append. Let me know how to do.
FileStream fs = new FileStream(infile, FileMode.Open, FileAccess.ReadWrite, FileShare.None);
Thanks in advance
sonj
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:56am.
|
|
|
|
|
Thanks for quick reply and it is working fine for me
Regards
sonj
|
|
|
|
|
sonj wrote: without create new or append
That sounds like requirements from a homework assignment; not a real-world requirement.
Reading and writing directly from an existing file will only work if the resultant file doesn't increase in size.
|
|
|
|
|
how can connect to database (c# and Sql server)?
how cane change my background image with open file dialog?
My Email : Daneshnia_nastaran@yahoo.com
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:57am.
|
|
|
|
|
stancrm wrote: Do you want to get some SPAM ??..
If that makes you happy, well, go ahead send some.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
|
Hi,
I'm working on an application which reads a pdf document. As we all know we have hand tool in most of the pdf reader, which is used to scroll the document. My issue is when I use the hand tool to scroll the mouse, the speed of the movement of the mouse and the speed of the scrolling of the document is not synchronized. Not matter how fast or slow I move the mouse, speed of scrolling of the document remains same.
I need help in developing the logic for this.
Thank you,
Pavan Navali.
|
|
|
|
|
my sql DB hasgot 500000 records..
datagrid can also have 1- 500000 records
in a button click i want to update values of datagrid to sql db
with out looping ...
pls help me
|
|
|
|
|
|
i once written an Article that does that
Coding an N-Tier Application in C# Without Any Wizard: Part II[^]
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
where can i DownLoad something from our Website?
i can't find it?
for exeample :softeware,Tutorial
modified on Monday, December 7, 2009 11:32 PM
|
|
|
|
|
What?
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
You mean from CP?
There are lots and lots of articles here. Search what you want. Read them and download source if present.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
It depends on the website. If you're talking about CodeProject, then there's usually a link at the top of each edited article.
|
|
|
|
|
Now i'm studing to do report,but no good books about CryStal Report tolearn,as a beginner,teacher ask me do my report work,because of limited time,please give me the Tutorial,or video Tutorial,thanks everyone!!
|
|
|
|
|