+ Reply to Thread
Results 1 to 5 of 5

Thread: MessageDlg, wut does this mean?

  1. #1
    Programmer 2710 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    108

    MessageDlg, wut does this mean?

    Hi,

    I have something like this :

    if MessageDlg ('Wrong Password! Try Again?', MtWarning, [MbYes,MbNo],0)=mrNo
    then close;

    What does the 0 (bolded) after MbNo mean?

    Thanks

    PS. I have done some tests, and by putting the number 1 or 2 or 1000 in place of the 0 has no effect.

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    37
    Posts
    12,912
    Blog Entries
    57

    Re: MessageDlg, wut does this mean?

    Delphi Basics : MessageDlg command
    0 is the help context, if you have any. Normally just leave it at 0.
    CodeCall Blog | CodeCall Wiki
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  3. #3
    Programmer 2710 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    108

    Re: MessageDlg, wut does this mean?

    "The HelpContext value is used in conjunction with the Help button. It's use is beyond the scope of Delphi Basic"

    So, its not really important right? Thnks

    PS. Can you just tell me what it does? For future reference, thanks

  4. #4
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    37
    Posts
    12,912
    Blog Entries
    57

    Re: MessageDlg, wut does this mean?

    If you're using a help document that you want to be able to link to (pressing F1 from the dialog), it'll tell you where in the document to open.
    CodeCall Blog | CodeCall Wiki
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #5
    Programmer 2710 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    108

    Re: MessageDlg, wut does this mean?

    Oh right, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)