MsgBox Function

གནས་གོང་ཅིག་སླ་ལོགཔ་དང་ནང་ན་འཕྲིན་དོན་ཡོད་པའི་ཌའི་ལོག་སྒྲོམ་ཅིག་བཀྲམ་བཏོནམ་ཨིན།

ཚིག་སྦྱོར:

འཕྲིན་དོན་སྒྲོམ (Text As String [,Type As Integer [,Dialogtitle As String]])

གནས་གོང་སླར་ལོག:

ཧྲིལ་ཨང་།

ཚད་བཟུང་:

Text: ཡིག་རྒྱུན་གསལ་བརྗོད་ཌའི་ལོག་སྒྲོམ་འདི་ནང་གི་འཕྲིན་དོན་བཟུམ་བཀྲམ་བཏོན་འབད་ཡོདཔ་ཨིན། གྱལ་དང་གཅིག་ཁར་ སིཨེཆ་ཨར$(13)བཙུགས་ཡོདཔ་ད་མཚམས་འབྱུངམ་ཨིན།

ཋའི་ལོག་མགོ་མིང་: ཡིག་རྒྱུན་གསལ་བརྗོད་ཌའི་ལོག་གི་མགོ་མིང་ཕྲ་རིང་ནང་བཀྲམ་བཏོན་ཡོདཔ་ཨིན། སྐྱུར་ཡོདཔ་ཨིན་པ་ཅིན་འཇུག་སྤྱོད་སོ་སོའི་མིང་འདི་བཀྲམ་བཏོན་ཡོདཔ་ཨིན།

དབྱེ་བ་:ཧྲིལ་ཨང་གསལ་བརྗོད་གང་རུང་དེ་ཌའི་ལོག་དབྱེ་བ་དང་ཨང་ངེས་འཛིན་འབདཝ་དང་ཨེབ་རྟ་གི་དབྱེ་བ་ཡང་ན་བཀྲམ་བཏོན་འབད་ཡོདཔ་པའི་ངོས་དཔར་ཚུ་གསལ་བཀོད་འབདཝ་ཨིན། དབྱེ་བ་དེ་གིས་བིཊིསི་དཔེ་གཞི་ཚུའི་མཉམ་མཐུད་ཁྱབ་ཚད་འབདཝ་ཨིན(ཌའི་ལོག་གི་རྒྱུ་རྫས་ཚུ་སོ་སོ་གནས་གོང་ཚུ་ཁ་སྐོང་འབད་དེ་གིས་ངོས་འཛིན་འབད་ཡོདཔ་ཨིན):

གནས་གོང་ཚུ

Named constant

Integer value

Definition

MB_OK

0

Display OK button only.

MB_OKCANCEL

1

Display OK and Cancel buttons.

MB_ABORTRETRYCANCEL

2

Display Abort, Retry, and Ignore buttons.

MB_YESNOCANCEL

3

Display Yes, No, and Cancel buttons.

MB_YESNO

4

Display Yes and No buttons.

MB_RETRYCANCEL

5

Display Retry and Cancel buttons.

MB_ICONSTOP

16

Add the Stop icon to the dialog.

MB_ICONQUESTION

32

Add the Question icon to the dialog.

MB_ICONEXCLAMATION

48

Add the Exclamation Point icon to the dialog.

MB_ICONINFORMATION

64

Add the Information icon to the dialog.

128

First button in the dialog as default button.

MB_DEFBUTTON2

256

Second button in the dialog as default button.

MB_DEFBUTTON3

512

Third button in the dialog as default button.


གནས་གོང་སླར་ལོག:

Named constant

Integer value

Definition

IDOK

1

OK

IDCANCEL

2

Cancel

IDABORT

3

Abort

IDRETRY

4

Retry

IDIGNORE

5

Ignore

IDYES

6

Yes

IDNO

7

No


Error codes:

༥ ནུས་མེད་བྱ་སྒོའི་ལམ་ལུགས་བོད་བརྡ་

དཔེར་བརྗོད:

Sub ExampleMsgBox

Dim sVar As Integer

 ཨེསི་ཝར = འཕྲིན་དོན་སྒྲོམ("Las Vegas")

 ཨེསི་ཝར = འཕྲིན་དོན་སྒྲོམ("Las Vegas",1)

 ཨེསི་ཝར = འཕྲིན་དོན་སྒྲོམ( "Las Vegas",256 + 16 + 2,"Dialog title")

 sVar = MsgBox("Las Vegas", MB_DEFBUTTON2 + MB_ICONSTOP + MB_ABORTRETRYCANCEL, "Dialog title")

End Sub