- Timestamp:
- Jul 15, 2008, 10:58:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/TestCase/SimpleTestCase/DelegateTest.ab
r491 r549 23 23 proc6Flag As Boolean 24 24 proc8Flag As Boolean 25 proc9Flag As Boolean 25 26 26 27 Static staticProc1Flag = False As Boolean 27 28 28 29 Public 30 31 x As DWord 32 29 33 Sub TestClass() 30 34 ClearFlags() 35 x = 0 31 36 End Sub 32 37 … … 39 44 proc6Flag = False 40 45 proc8Flag = True 46 proc9Flag = False 41 47 End Sub 42 48 Function CheckFlags() As Boolean … … 75 81 proc8Flag = False 76 82 End Sub 83 84 Sub Proc9() 85 proc9Flag = ( x = &H12345678 ) 86 End Sub 87 88 Sub Ticket177() 89 Dim dg = New Callback1( AddressOf( This.Proc9 ) ) 90 dg() 91 End Sub 77 92 End Class 78 93 … … 93 108 dg4( New StringEx( "Proc4 calling" ) ) ' 反変引数サポートのテスト 94 109 110 testObj.x = &H12345678 111 testObj.Ticket177() 112 95 113 UnitTest( "Delegate1", testObj.CheckFlags() ) 96 114
Note:
See TracChangeset
for help on using the changeset viewer.