2 Imports Microsoft.VisualBasic
\r
4 Module AssignmentStatementsC
\r
6 Private str As String = "Hello VB.NET World"
\r
7 Public Property mystr() As String
\r
11 Set(ByVal Value As String)
\r
18 Mid(str, 7) = "MS.NET"
\r
19 If str <> "Hello MS.NET World" Then
\r
20 Throw New Exception("#ASC1 - Assignment Statement failed")
\r
23 Mid(str, 7, 5) = "ASP.NET"
\r
24 If str <> "Hello ASP.NT World" Then
\r
25 Throw New Exception("#ASC2 - Assignment Statement failed")
\r
28 Mid(str, 7) = "VisualBasic .NET World"
\r
29 If str <> "Hello VisualBasic " Then
\r
30 Throw New Exception("#ASC3 - Assignment Statement failed")
\r
33 Mid(str, 7) = 2.5 * 34.59
\r
34 If str <> "Hello 86.475Basic " Then
\r
35 Throw New Exception("#ASC4 - Assignment Statement failed")
\r
38 Mid(mystr, 7) = "MS.NET"
\r
39 If mystr <> "Hello MS.NETBasic " Then
\r
40 Throw New Exception("#ASC5 - Assignment Statement failed")
\r