作者: ChenRobert (罗伯陈) 看板: Visual_Basic
标题: [ASP ] 多行编译时看成一行
时间: Fri Apr 23 20:48:27 2021
Para = Array ("0.918,0.473,0.931,0.478,DE795A,0.8,0"
"0.550,0.747,0.579,0.834,42C3F7,0.3,1"
"0.929,0.844,0.970,0.870,42C7F7,0.3,2"
)
我这样就会编译错误
请问要怎麽修正可以在编译时候视为一行
就像是 C语言的 \
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 1.34.233.240 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Visual_Basic/M.1619182109.A.9BE.html
1F:推 fumizuki: 行尾空一格再加底线 04/23 20:51
感谢 不过run的时候又遇到 类型不符要怎样解决?
因为这没有办法直接宣告string 要怎麽让Para 知道自己吃的是string?
※ 编辑: ChenRobert (1.34.233.240 台湾), 04/23/2021 21:36:46
2F:→ fumizuki: Array("", "", "") 你3个项目的分隔逗号没给? 04/25 14:35
3F:→ ChenRobert: 後来更改过後有给,不然compile不过 04/25 17:26
4F:→ ChenRobert: 是build过 但执行会类型不符 04/25 17:27
5F:→ fumizuki: 猜不到你写了什麽啊...不把程式码贴上来吗 04/25 18:20
6F:→ fumizuki: "第一个项目", _ 04/25 18:21
7F:→ fumizuki: "第二个项目, _ 04/25 18:21
8F:→ fumizuki: "第三个项目" _ 04/25 18:21
9F:→ fumizuki: ) '结尾 (第二个项目我漏打结束的双引号) 04/25 18:22
Para = Array ("0.918,0.473,0.931,0.478,DE795A,0.8,0",/*演习开始介面*/ _
"0.550,0.747,0.579,0.834,42C3F7,0.3,1",/*演习对手讯息介面*/ _
"0.929,0.844,0.970,0.870,42C7F7,0.3,2",/*出击编队*/ _
"0.949,0.045,0.974,0.080,F7F3F7,0.2,3",/*战斗介面*/ _
"0.877,0.877,0.915,0.931,319AE7,0.1,4",/*结算介面*/ _
"0.970,0.907,0.987,0.980,42C3F7,0.2,5",/*大地图介面*/ _
"0.135,0.000,0.167,0.027,5A59A5,0.8,6",/*败北介面*/ _
"0.766,0.619,0.793,0.650,0075CE,0.1,7",/*受到伏击介面*/ _
"0.655,0.204,0.757,0.259,B57552,0.3,8"/*连续刷图介面*/ _
)
※ 编辑: ChenRobert (1.34.233.240 台湾), 04/25/2021 18:38:27
10F:→ laechan: 给 response.write CStr(Para(1)) 看会怎样 04/26 12:26
11F:→ laechan: 我觉得写code时适度给一些空格会好一点可避免很多error 04/26 12:27
12F:→ ChenRobert: 解了 感谢 不能放在function里面 宣告 dim para就好 04/26 22:23
13F:→ fumizuki: 注解符号不对,注解位置也不对 04/28 06:26
14F:→ fumizuki: 还有,ASP是直译的,执行阶段才编译 04/28 06:31
15F:→ fumizuki: 副档名是asp?还是aspx? 04/28 06:33