This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 问一个Visual Studio的问题。如何能在Visual Studio里面输入以下格式的文字
Dim sql As String
sql = "
SELECT ID,
name
FROM tbl "
该死的Visual Studio非要把它弄成
Dim sql As String
sql = " "
SELECT ID,
name
FROM tbl "
实在是不想把query都写在一行里,没法读呀。
-bdbs(不多不少);
2007-10-12
{311}
(#3987587@0)
-
Dim sql As String
sql = "
SELECT ID,
name
FROM tbl "Dim sql As String
sql = " " & _
"SELECT ID," & _
" name" & _
" FROM tbl "
still not very readable though
-win(秋天的菠菜);
2007-10-12
{144}
(#3987595@0)
-
就是这样好像也不行。&_不work。俺这是VS 2005。
-bdbs(不多不少);
2007-10-12
(#3987605@0)
-
there is a space in between.
-win(秋天的菠菜);
2007-10-12
(#3987616@0)
-
谢谢。
-bdbs(不多不少);
2007-10-12
(#3987654@0)
-
VB 不行, C#可以。或者用 stringbuilder
-alittleman(凡人);
2007-10-12
(#3987658@0)
-
In VB, underscore, _ , (and at least one space before it) is used as line continue.Dim sql As String = _
"SELECT ID, " + _
" name " + _
"FROM TBL"
-deep_blue(BLUE);
2007-10-12
{96}
(#3987713@0)
-
谢谢。这东西,放狗都不知道让狗找什么。
-bdbs(不多不少);
2007-10-12
(#3987734@0)
-
man, do not compare our helpers with dogs, ok ? :-))))
-win(秋天的菠菜);
2007-10-12
(#3987741@0)
-
不是说有困难外面找古狗,肉联找菠菜吗?
-bdbs(不多不少);
2007-10-12
(#3987848@0)
-
oh really. so my brand is comparable with Google... emm.... my stock in TSX will soar....
-win(秋天的菠菜);
2007-10-12
(#3987870@0)
-
If it’s staff of MS, better to search MSDN first.
-deep_blue(BLUE);
2007-10-12
(#3987767@0)
-
唉,就是MS自己的东西,也得通过古狗找出来的才能看。MS的搜索不是一般的烂!
-bdbs(不多不少);
2007-10-12
(#3987857@0)
-
Don't know too much about VB, C# does this:string sql="asl;dfjksdljksdaf"+
"alskfjasdlkfdjs"+
"a;lsdkfjdslkj"
is that you want?
-madeinchina(强力万能胶);
2007-10-12
{95}
(#3987915@0)
-
NO. 菠菜和深蓝的答案对的。俺有年头没用VB了,怎么也想不起来那个下划线转行符,也不知道那玩艺儿叫什么,搜也搜不出来。
-bdbs(不多不少);
2007-10-12
(#3987960@0)