Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How to compare a value of a data table with -1

$
0
0

Hi

i have a data table where i am comparing its values with 0 and i want to add one more condition to compare with -1.

 My code is somthing like this

if

(Convert.ToInt64(ReplaceNull(dsReportData.Tables[intTableCount].Rows[intRowCount][8])) == 0 )

please someone suggest me how to add in or condition to compare with -1


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>