如何在vb.net中连接_

时间:2014-10-10 16:58:31

标签: vb.net

vb.net中的

_用于行继续。如何在文本中连接_。

我正在尝试这个

 aPath.ExeConfigFilename = strAppPath & "\" & Environment.UserName.ToString & Thread.CurrentThread.CurrentCulture.Name.ToString &_& xyzConstants.CONFIG_FILE

1 个答案:

答案 0 :(得分:0)

改变这个:

aPath.ExeConfigFilename = strAppPath & "\" & Environment.UserName.ToString &
  Thread.CurrentThread.CurrentCulture.Name.ToString &_& xyzConstants.CONFIG_FILE

到此:

aPath.ExeConfigFilename = strAppPath & "\" & Environment.UserName.ToString &
  Thread.CurrentThread.CurrentCulture.Name.ToString & "_" & xyzConstants.CONFIG_FILE