ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý¦p¦óÅã¥Ü°T®§°ÝÃD

½Ð°Ý¦p¦óÅã¥Ü°T®§°ÝÃD

½Ð°Ý¦U¦ì«e½ú
¦pªG§Ú¤µ¤Ñ­n¦b¤ÀªRªF¦è¤§«e¥ýÅã¥Ü¨¾§b
¦p:±zªºªí®æ¬O§_¬°XXX  ¬O(Y) §_(N)

¦pªG¿ï¾Ü§_(N)«h·|¸õ¦^¤W¤@­Ó³B²zµ{§Ç©Î¨ú®ø³o­Ó¨BÆJ

¦pÅã¥Ü"¬O(Y)"«h·|¶i¤@¨B¸ß°Ý:±z½T©w³B²zXXXªí¶Ü? ¬O(Y) §_(N)
«ö¤U¬O(Y)´N·|¶}©l¶i¦æ³B²z
«ö¤U§_(N)«h·|¸õ¦^²Ä¤@¨B

³o¼Ë­n«ç»ò¼g©O?

§Ú¬O¼g³o¼Ë
  1. Sub ¸ß°Ý»P¨¾§b()

  2. Dim ans As Integer
  3. ans = MsgBox("±zªºªí®æ¬OXXX¶Ü?", _
  4. vbYesNo + vbQuestion, "±z¿ï¾Ü¤FXXXªí")

  5. If ans =vbYes then
  6.    "¶}©l¤ÀªR³o¬q§Ú¤£·|¼g...."
  7. End If
  8. End Sub
½Æ»s¥N½X
§Úª¾¹D¼gªº¤£¤T¤£¥|...
¦Ó¥BªF¦è³£¶]¤£¥X¨Ó ¤]¨S¦³¿ìªk¦b«ö§_¤§«á¸õ¦^¤W¤@¨B
ÞË «ô°U¦U¦ì¤j¤j±Ð¾É¤@¤U ³Â·Ð¤F!!

¥»©«³Ì«á¥Ñ luhpro ©ó 2016-5-6 23:37 ½s¿è
¦^´_  luhpro
«e½ú©êºp ³o¼Ëªº»yªk¦ü¥G³¯­z¦¡¬O¿ù»~ªº
ans = MsgBox ("±zªºªí®æ¬OXXX¶Ü?" _
vb ...
chaoyiho µoªí©ó 2016-5-3 09:09

«x?
§Ú°õ¦æ°_¨Ó¨S¦³°ÝÃD°Ú?
°ò¥»¤W§Ú¥á¤W¨Óªºµ{¦¡½X³£·|¹ê»Ú°õ¦æ½T»{¹L¥i¦æ,
°£«D§Ú¦³¯S§Oµù©ú¥¼¸g¹ê´ú¹L,
©Î¬Oµ{¦¡¤Ó²³æ ¥ç©Î¬O ®É¶¡¨Ó¤£¤Î°¼.

¦^´_  chaoyiho
...
¦ý¬O
¦pªG¿ï¾Üªº¬O"¬O"
¨º¸Ó«ç»òÅý¥L§PŪ¬O§_¬°­n¤ÀªRªº©T©w®æ¸Õªí³æ©O?
chaoyiho µoªí©ó 2016-5-3 12:23


§ÚµLªk¾ÌªÅ·Q¹³§A©Ò¿×ªº "§PŪ" ¬O¥Î¬Æ»ò±ø¥ó°µ¨Ì¾Ú,
§PŪªº¼Ðªº¤S¬O¬Æ»ò.

§A­n¤£­nªþ¤WÀɮ׬ݬÝ,
¥i¥H¥ý§âÁô¨p©Î­Ó¸ê ¸ê®Æ°u¤©¾B¸n,
©Î¬O§A¯à±Ô­z±o§ó§¹¾ã¸Ô²Ó¤@¨Ç.

TOP

¦^´_ 4# chaoyiho

¦b¿ï¾Ü§_¤W­±¥u»Ý­n¥[¤W

Exit Sub   '±j¨îµ²§ô

´N¥i¥H¹ï¥L¤£°µ°Ê§@

¦ý¬O

¦pªG¿ï¾Üªº¬O"¬O"

¨º¸Ó«ç»òÅý¥L§PŪ¬O§_¬°­n¤ÀªRªº©T©w®æ¸Õªí³æ©O?
½Ð±Ð«e½ú

TOP

¦^´_  luhpro

«e½ú©êºp ³o¼Ëªº»yªk¦ü¥G³¯­z¦¡¬O¿ù»~ªº

ans = MsgBox ("±zªºªí®æ¬OXXX¶Ü?" _

vb ...
chaoyiho µoªí©ó 2016-5-3 09:09


©êºp~~¶W¹L¤T¤ÀÄÁ¤£¯à½s¿è ¥u¯à¥Î¦^¤åªº
"¬O"¤§«á¡G¶i¦æ³B²z»P¤ÀªR
"§_"¤§«á¡G¦^¨ì¤W¤@¨B

³o¸Ó«ç»ò°µ©O?

TOP

¦^´_ 2# luhpro

«e½ú©êºp ³o¼Ëªº»yªk¦ü¥G³¯­z¦¡¬O¿ù»~ªº

ans = MsgBox ("±zªºªí®æ¬OXXX¶Ü?" _

vbYesNo vbQuestion, "±z¿ï¾Ü¤FXXXªí")

»P

ans = MsgBox("±zªºªí®æ¬OXXX¶Ü?", _

  vbYesNo + vbQuestion, "±z½T©w³B²zXXXªí¶Ü? ¬O(Y) §_(N)")

¦ü¥G¬O¦³°ÝÃDªº

©ó¬O§Ú¦Û¤v¸Õ¨ìªº³¡¤À¬°
  1. Private Sub CommandButton1_Click()
  2. Dim Msg, Style, Title, Response, MyString
  3. Msg = "½Ð°Ý±z¿ï¾Üªº¥ÀÀɬ°165ªí¶Ü?"
  4. Style = vbYesNo + vbQuestion + vbDefaultButton1
  5. Title = "165ªí¸ß°Ýµøµ¡"

  6. Response = MsgBox(Msg, Style, Title)
  7. If Response = vbYes Then    ' User chose Yes.
  8.     MyString = "Yes"    ' Perform some action.
  9. Else    ' User chose No.
  10.     MyString = "No"    ' Perform some action.
  11. End If

  12. End Sub
½Æ»s¥N½X
¦ý¬O³o¥u¬O³æ¯Âªº¸ß°Ý ¨ÃµLªk¦b¸ß°Ý¦^µª"¬O"¤§«á¶i¦æ(³B²z/¤ÀªR)

½Ð°Ý«e½ú  §Ú¸Ó¦p¦ó°µ­×§ï©O?

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2016-4-30 05:12 ½s¿è

¦^´_ 1# chaoyiho
¨º´N¤ñ·Ó¿ì²zÅo:
  1. Sub ¸ß°Ý»P¨¾§b()

  2.   Dim ans As Integer
  3.   ans = MsgBox("±zªºªí®æ¬OXXX¶Ü?", _
  4.   vbYesNo + vbQuestion, "±z¿ï¾Ü¤FXXXªí")

  5.   If ans = vbYes Then
  6.     ans = MsgBox("±zªºªí®æ¬OXXX¶Ü?", _
  7.     vbYesNo + vbQuestion, "±z½T©w³B²zXXXªí¶Ü? ¬O(Y) §_(N)")
  8.     If ans = vbNo Then Exit Sub ' ª½±µ¸õ¥X Sub
  9.   Else
  10.     Exit Sub
  11.   End If
  12.   ' ³£«ö½T©w«áªº³B²z§@·~
  13. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD