the data type was int earlier, i changed it to decimal but when i put decimal points the aplication exits.
there are some conditions too.. part of the code i found is given below
private void txtAge_TextChanged(object sender, EventArgs e)
{
if (txtAge.Text != "")
{
if (Convert.ToInt32(txtAge.Text) > 18)
{
txtFees.Text = Convert.ToString(2);
}
else
txtFees.Text = Convert.ToString(0);
plz help
plz help

VulpesPosted Feb 8, 2015, 1:05 PM
This denotes the 'general' format and will, hopefully, suppress the .00 when Age is a whole number.
Neeraja SathyadasPosted Feb 18, 2015, 12:40 AM
Now I have a big problem and a big doubt. Hope you can help me. My software is an OP ticket printing, saving and report giving software for a hospital. In that, while we taking reports it must show the total new OP, total old OP and all.
There is a visit again button, which will be used when an old OP comes, we press the visit again button and the no. of visits will be increased by 1. and the last visit date of that person will be updated to the present date.
The problem is when we take the daily report It shows all correct, Total old OP count, Total new OP count, All OK, But when we take a monthly report the numbers are not correct. It is because we are counting the Old OP by taking last visit date and no. of visit > 1, so, if the person visited more than 2 times, it is not counting, it counts only the last time as old op.
How can I solve this?? I think I must add an another column in the table for saving all visited days of a person. Is that possible? How can I do that?? plz help.. Plz.. :( I am attaching the query with table creation and a stored procedure and parts of the .net code.. plz give me a detailed instruction.. I am new to all these. Plz help..
Neeraja SathyadasPosted Feb 8, 2015, 3:07 AM
VulpesPosted Feb 6, 2015, 3:41 PM
Neeraja SathyadasPosted Feb 6, 2015, 8:27 AM
i want to show the same fraction age in the report.. what can i do? plz help.. plz plz..
VulpesPosted Feb 5, 2015, 3:45 PM
Neeraja SathyadasPosted Feb 5, 2015, 1:18 PM
Neeraja SathyadasPosted Feb 5, 2015, 1:05 PM
VulpesPosted Feb 5, 2015, 12:08 PM