Topic: If else if else Not Working

begin
       if Form1.Edit1.value < Form1.Edit3.value then

    begin
        Form1.ComboBox1.ItemIndex := 1; //Unpaid
    end else
    begin
    Form1.ComboBox1.ItemIndex := 2;  //Paid
    end;


end;

Re: If else if else Not Working

Hi,
Your syntax is correct.
Have you created an 'onchange' event for form1.edit1? (please see the screenshot in the attachment).
Regards,
Derek.

Post's attachments

Attachment icon shaik.zip 423.03 kb, 252 downloads since 2019-12-23 

Re: If else if else Not Working

thanks

Re: If else if else Not Working

hii sir
Please one query tell me

Re: If else if else Not Working

i have two tables
parent with named students
and another child of parent is its books

so i want to display as the label as last book added in child table

Re: If else if else Not Working

hello sir please see my attachment and add SQL query on paid/unpaid status calculate total fees by adding installments fees if any remaining fees then auto change status unpaid and if total fees paid in 3 installments and if in future delete one installment then auto minus added delete installment and change status unpaid