Q&A

  • MessageBox의 반환값은 어떻게...??
안녕하세요!!...

MessageBox가 실행되고 이 실행된 창에서 OK버튼이 눌려지면 혹은 YES버튼이 눌려지면

다른 어떠한 작업을 처리하려고 합니다..

OK버튼을 누르면 반환되는 값이 IDOK 라는 것은 알겠는데 이것을 소스로 어떻게 표현하는지 모르겠네요...아시는분 좀 갈켜주세요...



if idok=true then (이런식으로 표현하는지...??)



그럼 오늘도 즐거운 하루되세요..



1  COMMENTS
  • Profile
    권경미 2000.12.15 00:40
    델이랑파이랑 wrote:

    > 안녕하세요!!...

    > MessageBox가 실행되고 이 실행된 창에서 OK버튼이 눌려지면 혹은 YES버튼이 눌려지면

    > 다른 어떠한 작업을 처리하려고 합니다..

    > OK버튼을 누르면 반환되는 값이 IDOK 라는 것은 알겠는데 이것을 소스로 어떻게 표현하는지 모르겠네요...아시는분 좀 갈켜주세요...

    >

    > if idok=true then (이런식으로 표현하는지...??)

    >

    > 그럼 오늘도 즐거운 하루되세요..

    >



    MESSAGEDLG함수를 사용하면 되지 않나요?



    if messagedlg('확실합니까?',mtinformation,[mbyes,mbno],0) = mryes then

    if messagedlg('확실합니까?',mtinformation,[mbyes,mbno],0) = mrno then



    등등...반환값은

    mrNone mrAbort mrYes

    mrOk mrRetry mrNo

    mrCancel mrIgnore mrAll 입니다...



    버튼값은

    mbYes A button with 'Yes' on its face.

    mbNo A button the text 'No' on its face.

    mbOK A button the text 'OK' on its face.

    mbCancel A button with the text 'Cancel' on its face.

    mbAbort A button with the text 'Abort' on its face

    mbRetry A button with the text 'Retry' on its face

    mbIgnore A button the text 'Ignore' on its face

    mbAll A button with the text 'All' on its face



    mbNoToAll A button with the text 'No to All' on its face

    mbYesToAll A button with the text 'Yes to All' on its face

    mbHelp A button with the text 'Help' on its face



    이구요...구럼 즐푸~ ^^