- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-1-28 16:07 ½s¿è
¦^´_ 1# mdr0465
Á|Ó¹ê¨Ò»¡©ú¡A§A«K·|©úÁA¡G- Sub joke()
- Dim txt As String, num As Integer
-
- txt = "§A¦n¶Ü¡H": num = 200
- Test1 txt, num ' ¶Ç§} (§Y jackyq ¤j¤j¤À¨Éªº "¥»´L")
- MsgBox "txt = " & txt & " , num = " & num
- ' µª®×¬O¡G txt = «Ü¦n¡AÁÂÁ¡I ¤j®a¥i¦n? , num = 150
-
- txt = "¦À\¦Y¤F¶Ü¡H": num = 100
- Test2 txt, num ' ¶ÇÈ (§Y jackyq ¤j¤j¤À¨Éªº "¤À¨")
- MsgBox "txt = " & txt & " , num = " & num
- ' µª®×¬O¡G txt = ¦À\¦Y¤F¶Ü¡H , num = 100
- End Sub
- Sub Test1(ByRef txt As String, ByRef num As Integer) ' ¶Ç§} (¦ì§} Address)
- txt = "«Ü¦n¡AÁÂÁ¡I ¤j®a¥i¦n?" ' (Reference)
- num = num - 50
- End Sub
- Sub Test2(ByVal txt As String, ByVal num As Integer) ' ¶ÇÈ (¼ÆÈ Value)
- txt = "«D±`¦n¡I§B¤÷¨Åé¦n»ò¡H"
- num = num - 85
- End Sub
½Æ»s¥N½X |
|