- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-8-30 07:01 ½s¿è
¦^´_ 15# skyutm
³o¨ÇÅÜ¼Æ a11 , b11, c11, d11, e11, f11 Dim As Integer µ{§Ç©|¥¼µ¹È®É ³£¬° 0
³o¦¡¬O¦h¦¹¤@Á| a11 = b11 = c11 = d11 = e11 = f11 = 0 ¶Ç¦^ True ©Î False (++=+ , +-=- , --=+) - Option Explicit
- Sub Ex()
- Dim xlBoolean As Boolean
- Dim a11 As Integer, b11 As Integer, c11 As Integer, d11 As Integer, e11 As Integer, f11 As Integer
- a11 = b11
- xlBoolean = a11
- Debug.Print xlBoolean & " " & a11 '§Y®É¹Bºâµøµ¡²×¥i¹î¬Ý
- a11 = b11 = c11
- xlBoolean = a11
- Debug.Print xlBoolean & " " & a11
- a11 = b11 = c11 = d11
- xlBoolean = a11
- Debug.Print xlBoolean & " " & a11
- a11 = b11 = c11 = d11 = e11
- xlBoolean = a11
- Debug.Print xlBoolean & " " & a11
- a11 = b11 = c11 = d11 = e11 = f11
- xlBoolean = a11
- Debug.Print xlBoolean & " " & a11
- a11 = b11 = c11 = d11 = e11 = f11 = 0
- xlBoolean = a11
- Debug.Print xlBoolean & " " & a11
- End Sub
½Æ»s¥N½X
Boolean ¸ê®Æ«¬ºABoolean ÅܼƫY¥H 16 ¦ì¤¸( 2 Ӧ줸²Õ)¼Æ¦rªº§Î¦¡Àx¦s¡A¦ý¥u¯à¬O True ©Î¬O False¡CBoolean ÅܼƪºÈ¤£¬O True ´N¬O False ( ¦b¨Ï¥Î Print ªº®ÉÔ )¡A©Î¬O #TRUE# ©M #FALSE# ( ¦b¨Ï¥Î Write # ªº®ÉÔ )¡C¨Ï¥ÎÃöÁä¦r True »P False ¥i±N Boolean Åܼƫü©w¬°³o¨âÓª¬ºA¤¤ªº¤@Ó¡C
·íÂà´«¨ä¥Lªº¼ÆÈ«¬ºA¬° Boolean ®É¡A0 ·|Âন False¡A¦Ó©Ò¦³¨ä¥LªºÈ«hÅܦ¨ True¡C·íÂà´« Boolean Ȭ°¨ä¥Lªº¸ê®Æ«¬ºA,®É¡AFalse ¦¨¬° 0 ¡A¦Ó True ¦¨¬° -1¡C
|
|