0

Hi,

Has anyone any clue why message boxes keep showing 2-3 times after clicking one of their button in Borland?
Please answer, I need help.
Thanks!

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by MrEARTHSHAcKER
0

I'm sorry I thought that's usual with messageboxes ( since I remember same problem in VB ).

Here's the code:

if(SAVE->OldComb()==1){
        Application->MessageBoxA("You have an old ticket, wanna use it (OK), or buy a new one(NO)?","Old ticket",MB_YESNO);
if(Application->MessageBoxA("You have an old ticket, wanna use it (OK), or buy a new one(NO)?","Old ticket",MB_YESNO)==IDYES){
        LOAD->LoadComb();
        TicketTab=new TTicketTab(Application);
        TicketTab->ShowModal();
        MainTab->Hide();
        Input1.OldTicket(true);
}
else if(Application->MessageBoxA("You have an old ticket, wanna use it (OK), or buy a new one(NO)?","Old ticket",MB_YESNO)==IDNO) {
        Lotto1.BuyTicket();
        TicketTab=new TTicketTab(Application);
        TicketTab->ShowModal();
        MainTab->Hide();
        Input1.OldTicket(false);
        }
}                    
else if(SAVE->OldComb()==0)
{
        TicketTab=new TTicketTab(Application);
        TicketTab->ShowModal();
        MainTab->Hide();
        Input1.OldTicket(false);
}

Thanks again.

Edited by pyTony: fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.