Hi!
I need to receive always this alert message that says: "you limit is passed".
I write this code just now and when I make substraction. I need when the result is "egal" or "more than" 6000 km its should say that alert message in top:
if (string.IsNullOrEmpty(lastKM.Text))
{
return;
}
double lastKM;
double recenteKM;
double ResultKms;
lastKM= Convert.ToDouble(txtlastKM.Text);
recenteKM= Convert.ToDouble(txtrecenteKM.Text);
ResultKms = lastKM- recenteKM;
lblResultKms.Text = ResultKms.ToString();
}
Loading
VulpesPosted Dec 5, 2014, 9:47 AM
IsraelPosted Dec 5, 2014, 2:22 PM
IsraelPosted Dec 5, 2014, 9:15 AM
1 + 1 = 2
when 1 + 0 = 1, it's ok. But when 1 + 1 = 2 (or more than 2) its should say: your "limit is passed".
Mean that lastKM it's 1; recenteKM it's 1 also and 2 it's the final result. This is my preocupation.
Rahul SinghPosted Dec 5, 2014, 8:10 AM
Can you please post any sample input of these textboxed `txtlastKM` & `txtrecenteKM`? Your question is not too clear. What's "egal"?