"赋值已被使用"应怎样处理?
我想问一个很菜的问题,我写下面这代码,但VS.2005说变量"SYSINFO"赋值已被使用,.....导致引用异常 这是为什么?怎样解决?望大侠解救.....
Dim sysinfo As String
sysinfo += Environment.MachineName & Environment.NewLine
sysinfo += Environment.UserName & Environment.NewLine
sysinfo += Environment.GetFolderPath(Environment.SpecialFolder.System) & Environment.NewLine
sysinfo += Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) & Environment.NewLine
sysinfo += Environment.OSVersion.Version.ToString() & Environment.NewLine
sysinfo += Environment.TickCount & "毫秒" & Environment.NewLine
sysinfo += TimeZone.CurrentTimeZone.StandardName & Environment.NewLine
sysinfo += Environment.NewLine
Dim envvar As Collections.DictionaryEntry
For Each envvar In Environment.GetEnvironmentVariables()
sysinfo += envvar.Key & ":`" & envvar.Value & Environment.NewLine
Next
Label2.Text = sysinfo