Visual Basic 2008 Join() Method Bug?
This is a very Simple Program I have got an array with string data
I want to put all string only one String variable.
I want to put all string only one String variable.
Dim LineOfText As String
Dim i As Integer
Dim aryTextFile(3) As String
aryTextFile(0) = "UserName1"
aryTextFile(1) = "Password1"
aryTextFile(2) = "UserName2"
aryTextFile(3) = "Password2"
LineOfText =LineOfText.Join("-", aryTextFile)
MsgBox(LineOfText)
In visual basic 2005 Express Edition the program run correctly, but in visual basic 2008 Prof(beta 2 Orcas)
I have got this error message:
"Acces of shared member, constant member, enum member or nested type through an instance;
qualifying expression will not be evaluated.
Replace 'LineOftext' with 'Enumerable'.
I tried to run the program without modification and work correctly!!
After I try with enumerable and gone fatal error![]()
So ? I don't understand " what is the problem? "
Or this is only a beta bug?

