line-continuation

Prevent Visual Studio 2015 from removing line continuation characters (_) in VB.NET files

会有一股神秘感。 提交于 2020-02-24 17:49:10
问题 I'm opening some old VB.NET projects in Visual Studio 2015 and when I edit the code, VS changes the syntax: It removes "_" in concatenations: 'Before myString = "ABC" & _ "DEF" 'After myString = "ABC" & "DEF" or add a space before !: 'Before myDatatable.Rows(0)!myColumn 'After myDatatable.Rows(0) !myColumn This syntax isn't compatible with Visual Studio 2010 or 2013. How can I disable this changes? 回答1: I had the same problem, and I was able to fix it by disabling the "Pretty listing" option

Line continuation not working in VBA for 2D Array construction

陌路散爱 提交于 2019-12-20 04:22:13
问题 In the following Subroutine, defining a two dimensional array doesn't seem to work with line continuation. TestArray1 initializes as expected, but when I add line continuation I get the message, "Compile Error - Closing bracket missing". (Actually I'm not sure of the exact wording in English, doing this in German. In German the error message is, "Fehler beim Komilieren: Fehlende schliesende Klammer". I'm sure the English is not far off.) Why would this not work? Sub TestArrays() Dim