How do I assign to an array variable?

  • Thread starter Thread starter Hal Heinrich
  • Start date Start date
H

Hal Heinrich

The following works fine:
Dim pNm As String() = {"@XDOC"}

But how do I achieve what the following attapts?
pNm = {"@XDOC"}

Thanks for your help,
Hal Heinrich
VP Technology
Aralan Solutions
 
The following works fine:
Dim pNm As String() = {"@XDOC"}

But how do I achieve what the following attapts?
pNm = {"@XDOC"}

Thanks for your help,
Hal Heinrich
VP Technology
Aralan Solutions

Option Explicit On
Option Strict On

Imports System

Module modMain
Public Sub Main()
Dim pNm() As String

pNm = new String() {"@XDOC"}
Dim s As String
For Each s In pNm
Console.WriteLine(s)
Next
End Sub
End Module

The above works in Mono - so I assume it will work just fine in .NET.
 
* "Hal Heinrich said:
The following works fine:
Dim pNm As String() = {"@XDOC"}

But how do I achieve what the following attapts?
pNm = {"@XDOC"}

What does "attapt" mean?
 
Back
Top