Closed Thread
Results 1 to 5 of 5

Thread: MessageDlg, wut does this mean?

  1. #1
    2710 is offline Programmer
    Join Date
    Sep 2008
    Posts
    108
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    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.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    2710 is offline Programmer
    Join Date
    Sep 2008
    Posts
    108
    Rep Power
    0

    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

  5. #4
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    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.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    2710 is offline Programmer
    Join Date
    Sep 2008
    Posts
    108
    Rep Power
    0

    Re: MessageDlg, wut does this mean?

    Oh right, thanks

Closed Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts