标题:"赋值已被使用"应怎样处理?
只看楼主
elantion
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-11-28
 问题点数:0 回复次数:0 
"赋值已被使用"应怎样处理?
我想问一个很菜的问题,我写下面这代码,但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
搜索更多相关主题的帖子: 赋值 
2006-11-28 23:45



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-106010-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.094195 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved