ISDBApplication::MessageBox

From MediaMonkey Wiki
Revision as of 17:05, 12 January 2013 by Stax76 (talk | contribs) (MessageBox buttons constants apparently were completely wrong)
Jump to: navigation, search

CoClass SDBApplication, Interface ISDBApplication

Function MessageBox(MessageText As String, MsgType As EnumMsgBox, Buttons) As Long


Parameters

Name Type Description
MessageText String Text to be shown in the message box.
MsgType EnumMsgBox Type of the box, can be one of: mtWarning(0), mtError(1), mtInformation(2), mtConfirmation(3) or mtCustom(4).
Buttons Variant Array of buttons to be shown, can be any of: mbYes(0), mbYesToAll(1), mbNo(2), mbNoToAll(3), mbOk(4), mbOkToAll(5), mbEdit(6), mbEditToAll(7), mbCancel(8), mbAbort(9), mbRetry(10), mbIgnore(11), mbIgnoreToAll(12), mbAll(13), mbHelp(14).


Method description

Shows a customized message box and returns information about button that was pressed, which can be one of the following values: mrNone(0), mrOk(1), mrCancel(2), mrAbort(3), mrRetry(4), mrIgnore(5), mrYes(6), mrNo(7), mrAll(8), mrNoToAll(9), mrYesToAll(10), mrOkToAll(110) or mrIgnoreToAll(111).

Example code

res = SDB.MessageBox( SDB.Localize("Select tracks to be exported, please."), mtError, Array(mbOk))