VB.NET Pastebin - Nopaste - Paste - easy sharing of text and codes

Posted by Jaque Vi Hose on Tue 24th Jan 19:37 (modification of post by view diff)
download | new post

  1. Module Module1
  2.  
  3.         Sub Main()
  4.  
  5.                 ' Header anzeigen
  6.                 Console.ForegroundColor = ConsoleColor.White
  7.                 Console.WriteLine("Text Editor Header")
  8.                 Console.ForegroundColor = ConsoleColor.DarkGray
  9.                 Console.WriteLine("¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯")
  10.                 Console.ResetColor()
  11.  
  12.                 ' Hilfe anzeigen
  13.                 Console.WriteLine("Enter an empty line to exit.")
  14.                 Console.WriteLine()
  15.  
  16.                 ' Zeile für Zeile einlesen und wieder ausgeben
  17.                 Dim Line As String ' Speicher für eine Zeichenkette reservieren
  18.                 Do ' Schleife Anfang
  19.                         Line = Console.ReadLine ' Zeile einlesen
  20.                         If String.IsNullOrEmpty(Line) Then Exit Do ' wenn leer -> raus
  21.                         Console.WriteLine(Line) ' hier würdest du speichern
  22.                 Loop ' Schleife Ende
  23.  
  24.                 Console.WriteLine("Finished.")
  25.  
  26.                 Console.WriteLine("Finished.")
  27.                 Console.ReadKey()
  28.  
  29.         End Sub
  30.  
  31. End Module

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


I'm Human
Remember me



Captcha required for posting