Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
c# Operator >= cannot be applied
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Skythrust" data-source="post: 461142" data-attributes="member: 87030"><p>Thanks Jay! For now it is just object, in the future the query would be longer with more objects.</p><p>[automerge]1590664957[/automerge]</p><p></p><p></p><p>I have tried this code what you had post, but he is trying to parse the value, but I would like to use this value for a follow up thing. Like now in a messagebox, but it will be trigger a mail action.</p><p></p><p>[CODE=csharp]if (int.TryParse(reader.GetString("Value"), out int val))</p><p> {</p><p> if (val >= 25)</p><p> {</p><p> MessageBox.Show("Value is higher than 25");</p><p> }</p><p> else if (val <= 23)</p><p> {</p><p> MessageBox.Show("Value lower than 23");</p><p> }</p><p> MessageBox.Show("Value is neutral");</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="Skythrust, post: 461142, member: 87030"] Thanks Jay! For now it is just object, in the future the query would be longer with more objects. [automerge]1590664957[/automerge] I have tried this code what you had post, but he is trying to parse the value, but I would like to use this value for a follow up thing. Like now in a messagebox, but it will be trigger a mail action. [CODE=csharp]if (int.TryParse(reader.GetString("Value"), out int val)) { if (val >= 25) { MessageBox.Show("Value is higher than 25"); } else if (val <= 23) { MessageBox.Show("Value lower than 23"); } MessageBox.Show("Value is neutral"); }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
c# Operator >= cannot be applied
Top