3 Module AssignmentStatementsA
\r
10 Throw New Exception("#ASA1 - Assignment Statement failed")
\r
13 i = 2.3 * 3.45 / 2.3 ' Implicit type conversion
\r
15 Throw New Exception("#ASA2 - Assignment Statement failed")
\r
18 Dim s As String = 2.3 * 3.45 / 2.3
\r
20 Throw New Exception("#ASA3 - Assignment Statement failed")
\r
23 s = New Date(2004, 8, 17)
\r
24 If s <> New Date(2004, 8, 17) Then
\r
25 Throw New Exception("#ASA4 - Assignment Statement failed")
\r
28 If s <> "8/17/2004" Then
\r
29 Throw New Exception("#ASA5 - Assignment Statement failed")
\r
32 Dim obj As New Object()
\r
33 Dim obj1, obj2 As Object
\r
36 If Not obj1 Is obj2 Then
\r
37 Throw New Exception("#ASA6 - Assignment Statement failed")
\r
43 Throw New Exception("#ASA7 - Assignment Statement failed")
\r
49 Throw New Exception("#ASA8 - Assignment Statement failed")
\r