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