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

VulpesRank #55 · 29.2K reputationPosted Dec 5, 2014, 4:47 AM EST
Rahul SinghRank #1,323 · 1.3K reputationPosted Dec 5, 2014, 3:10 AM EST
Can you please post any sample input of these textboxed `txtlastKM` & `txtrecenteKM`? Your question is not too clear. What's "egal"?
IsraelRank #1,223 · 1.5K reputationPosted Dec 5, 2014, 4:15 AM EST
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.
IsraelRank #1,223 · 1.5K reputationPosted Dec 5, 2014, 9:22 AM EST