当前位置: 代码迷 >> VB Dotnet >> 这样一段代码在vb.net中怎么换行
  详细解决方案

这样一段代码在vb.net中怎么换行

热度:4960   发布时间:2013-02-26 00:00:00.0
这样一段代码在vb.net中如何换行
Dim strSqlInsert As String = "insert into TbMeterData(MeterId,DataDateTime,DataAPhaseCurrent,DataBPhaseCurrent,DataCPhaseCurrent,DataAverageCurrent,DataAPhaseVoltage,DataBPhaseVoltage,DataCPhaseVoltage,DataAverageVoltage,DataABPhaseLineVoltage,DataBCPhaseLineVoltage,DataACPhaseLineVoltage,DataAverageLineVoltage,DataTotalActivePower,DataTotalReactivePower,DataTotalApparentPower,DataAveragePowerFactor,DataFrequency,DataPositiveActiveElectricEnergy,DataReverseActiveElectricEnergy,DataPositiveReactiveElectricEnergy,DataReverseReactiveElectricEnergy) values('" & MeterId(j) & "','" & dateTime & "','" & DataAPhaseCurrent & "','" & DataBPhaseCurrent & "','" & DataCPhaseCurrent & "','" & DataAverageCurrent & "','" & DataAPhaseVoltage & "','" & DataBPhaseVoltage & "','" & DataCPhaseVoltage & "','" & DataAverageVoltage & "','" & DataABPhaseLineVoltage & "','" & DataBCPhaseLineVoltage & "','" & DataACPhaseLineVoltage & "','" & DataAverageLineVoltage & "','" & DataTotalActivePower & "','" & DataTotalReactivePower & "','" & DataTotalApparentPower & "','" & DataAveragePowerFactor & "','" & DataFrequency & "','" & DataPositiveActiveElectricEnergy & "','" & DataReverseActiveElectricEnergy & "','" & DataPositiveReactiveElectricEnergy & "','" & DataReverseReactiveElectricEnergy & "')"
values之前其实用空格加下划线可以换,但是后面的也这样换却不行……
vb.net 换行?

------解决方案--------------------------------------------------------
Dim s As String = "a" & _
"b"
  相关解决方案