Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I believe he is saying that he wants to remove the inline comments from his code.</p> <p>Fastest way is to perform a find in files for UPGRADE_WARNING: and remove them by hand. </p> <p>Or,</p> <p>You could create a new .Net program to iterate through each .vb file in your source directory and read them in using a StreamReader and then write them out 1 line at a time to the same file and as you go omit any lines containing UPGRADE_WARNING:.</p> <p>If you do the second way you will be that much better for having done some more vb.net coding.</p> <pre><code> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim FileName As String = "c:\form1.vb" Dim SourceFile As System.IO.FileInfo = New FileInfo(FileName) Dim SourceTextStream As System.IO.TextReader = SourceFile.OpenText() Dim SourceFileContent() As String = Split(SourceTextStream.ReadToEnd(), vbCrLf) SourceTextStream.Close() Dim CurrentSourceLine As String Dim CurrentSourceLineNumber As Long Dim DestStream As StreamWriter = New StreamWriter(FileName) Dim LogStream As StreamWriter = New StreamWriter(FileName + ".log") For Each CurrentSourceLine In SourceFileContent CurrentSourceLineNumber += 1 If InStr(CurrentSourceLine, "UPGRADE_WARNING") = 0 Then DestStream.WriteLine(CurrentSourceLine) Else ' Write to Log File LogStream.WriteLine("Line Skipped at number: " + CurrentSourceLineNumber.ToString()) End If Next DestStream.Close() LogStream.Close() End Sub </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload