VB.NET StreamWriter 预期表达式
过去一个小时左右我一直在看这个。谁能告诉我这有什么问题吗?
ManagerHtml = ManagerHtml.Replace("##Alerts_Popup##",AlertsPopup)
Dim sw As StreamWriter = New StreamWriter(SitePath & "slaOverViewPages\" & Manager("UserID") & "_" & Manager("Adjuster") & "_" & Module(1) & ".html")
sw.Write(ManagerHtml)
sw.Close()
这是编译器错误BC30201:需要表达式。
导致该错误的行是Dim sw
行。
谢谢你的帮助。
纳鲁姆
I've been look at this for the last hour or so. Can anyone tell me what is wrong with this?
ManagerHtml = ManagerHtml.Replace("##Alerts_Popup##",AlertsPopup)
Dim sw As StreamWriter = New StreamWriter(SitePath & "slaOverViewPages\" & Manager("UserID") & "_" & Manager("Adjuster") & "_" & Module(1) & ".html")
sw.Write(ManagerHtml)
sw.Close()
This is the compiler error BC30201: Expression expected.
The line that caused it is the Dim sw
line.
Thanks for you help.
Nalum
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您能否提供有关 Module(1) 返回内容的更多信息?或者您可以尝试将代码移动到单独的行中
,然后在代码语句中使用变量 moduleName 。
Can you provide more information on what does the Module(1) returns? or can you try to move code into a separate lines like
and then using the variable moduleName in your code statement statement.
我猜 Manager("xx") 中的那些双引号令人困惑。如果使用单引号会发生什么?
I'm guessing those double quotes in Manager("xx") are confusing things. What happens if you use single quotes?