Board logo

¼ÐÃD: ¾i¦¨ ©Ò¦³ÅܼƳ£»Ý­n ¨Æ¥ý©w¸qªº ¦n²ßºD [¥´¦L¥»­¶]

§@ªÌ: sjgau    ®É¶¡: 2013-10-23 10:33     ¼ÐÃD: ¾i¦¨ ©Ò¦³ÅܼƳ£»Ý­n ¨Æ¥ý©w¸qªº ¦n²ßºD

Option Explicit
' ¤W­±ªº ³o¤@¦æ¡A¥²¶·Â\¦b ©Ò¦³°Æµ{¦¡ªº¥~­±

Sub test1026()
   Dim a As Integer
   
   a = 10 + 3
   MsgBox a
End Sub
§@ªÌ: sunnyso    ®É¶¡: 2013-10-23 21:57

¦^´_ 1# sjgau

½Ð°Ý¹ïµ{¦¡¹B¦æ®Ä²v¦³¦n³B¶Ü?

¨ä¥L¦n³B?
ÁÂÁÂ
§@ªÌ: c_c_lai    ®É¶¡: 2013-10-24 08:13

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2013-10-24 08:16 ½s¿è

¦^´_ 2# sunnyso
¦^´_ 1# sjgau
ÅܼƬO¥Î¨ÓÅýµ{¦¡¼È¦s¸ê®Æªº, ÅܼƤ¤©Ò¦sªº¸ê®Æ´N¥s°µÅܼƪº¡u­È¡v,
Åܼƪº­È¥i¥H¬O¦r¦ê¡B¼Æ¦r¡B¥¬ªL­È...µ¥¸ê®Æ¡C
¦b¨Ï¥ÎÅܼƮÉ,¥²¶·­nª`·NÅܼƪº¦³®Ä½d³ò, §_«h¥i¯à³y¦¨µ{¦¡¹B§@µ²ªG¿ù»~¡C
¦b«á´Á¥X²{ªº¤@¨Ç°ª¶¥µ{¦¡»y¨¥¤¤¤£»Ý­n¨Æ¥ý«Å§i¤]¥i¥Hª½±µ¨Ï¥ÎÅܼơC
¨Æ¥ý«Å§iÅܼƪº·N«ä¬O«ü, Ä´¦p¥H Variant «ü¥O§i¶D VBA, µ{¦¡«Ý·|¨à»Ý­n¨Ï¥Î³o­Ó¦WºÙªºÅܼÆ,
½Ð¹q¸£¦b¤@¶}©l°õ¦æµ{¦¡®É´N¬°¸ÓÅܼƫO¯d¤@¨Ç°O¾ÐÅéªÅ¶¡¡C
­Y¬O¨S¦³¨Æ¥ý«Å§i, «h VBA·|¦b¸ÓÅܼƲĤ@¦¸¥X²{®É,  ¤~¨Ì»Ý­n¤À°t°O¾ÐÅéªÅ¶¡µ¹¥¦¡C

P.S.  Variant ¬O¤@ºØ¯S®íªº¸ê®Æ«¬ºA¡A¬O©Ò¦³¨S³Q©ú½T«Å§i¬°¨ä¥L«¬ºA
      (¥Î¦p Dim¡BPrivate¡BPublic ©Î Static ªº³¯­z¦¡)¤§Åܼƪº¸ê®Æ«¬ºA¡C
      ±z¥i¥H¥Î Variant ¸ê®Æ«¬ºA¨Ó¨ú¥N¥ô¦óªº¸ê®Æ«¬ºA¡A¥H§ó¦³¼u©Êªº¤è¦¡¨Ó¹Bºâ¡C
      ¦pªG Variant Åܼƪº¤º®e¬O¼Æ¦r¡A¥¦¥i¥H¥Î¦r¦ê¨Óªí¥Ü¼Æ¦r©Î¬O¥Î¥¦¹ê»Úªº­È¨Óªí¥Ü¡A
      ¥Ñ¤º®e¨Ó¨M©w¡C(¦¹¬q P.S. «YºK¿ý¦Û Excel (Help) »¡©ú)

«Å§iÅܼƻP«ü©wÅܼƭÈ
¤£¹L¦³¸gÅ窺µ{¦¡³]­p®v³£·|«Øij§A¦b¨Ï¥ÎÅܼƫe¥ý¦æ«Å§i,
³o¼Ë¤@¤è­±¥i¥H½T»{Åܼƪº¦³®Ä½d³ò , ÁקKµ{¦¡¿ù»~¡F
¥t¤@¤è­±, ¾i¦¨³o¼Ëªº¦n²ßºD, ¹ï©ó¤é«á¾Ç²ß¨ä¥¦³W©w§óÄY®æªºµ{¦¡»y¨¥®É·|«Ü¦³À°§U
(³\¦hµ{¦¡»y¨¥¦p CBasic¡BJava ¡BC/C++¡BCOBOL¡BPascal...µ¥¦b¨Ï¥ÎÅܼƮɥ²¶·¨Æ¥ý«Å§i)¡C

Option Explicit ¤§³¯¶D§Y¦b¼Ò²Õ¼h¦¸¤¤±j­¢¨C­Ó¦b¼Ò²ÕùتºÅܼƳ£¥²¶·©ú½Tªº«Å§i¡C
·í¦b¼Ò²Õ¤¤¨Ï¥Î®É¡A¥²¶·¥H Dim¡A Private¡BPublic¡BReDim ©Î Static ³¯­z¦¡¨Ó©ú½T«Å§i©Ò¦³ªºÅܼơC
¦pªG¨Ï¥Î¥¼«Å§iªºÅܼƦWºÙ¡A«h¦b½sĶ¶¥¬q®É¡A·|µo¥Í¿ù»~¡C
¦pªG¥¼¨Ï¥Î Option Explicit ³¯­z¦¡¡A«h©Ò¦³¥¼«Å§iªºÅܼƳ£¬O Variant «¬ºA¡A
°£«D¹w³]ªº«¬ºA¥t¥H Deftype ³¯­z¦¡©Ò«ü©w¹L¡C

ªþµù Option Explicit ¥iÁקK¥´¿ùÅܼƦWºÙ©Î¦b¦³®Ä½d³ò¤º¬Û¦PªºÅܼƦWºÙ¡C
(¦¹¬q Option Explicit ¤§³¯¶D«YºK¿ý¦Û Excel (Help) »¡©ú)
³Ì«á§Æ±æ¤j®a©ó¼¶¼gµ{¦¡®É¡A¯à¾i¦¨©Ò¦³¨Ï¥ÎÅܼƳ£»Ý­n¨Æ¥ý©w¸qªº¦n²ßºD¡C
§@ªÌ: stillfish00    ®É¶¡: 2013-10-24 09:39

¦^´_ 2# sunnyso
©ú½T«ü©wÅܼƸê®Æ«¬ºA¹ï®Ä²v¤]¦³¦n³B¡A¥i®³ http://forum.twbts.com/thread-10647-1-1.html ¸Õ¸Õ




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)