ModMain.convert Method ModMain.convert Method EDKB12WS.ModMain.convert Method convert Method topic_00000000000003C8 EDKB12WS.ModMain.convert EDKB12WS.ModMain.convert ModMain.convert EDKB12WS.ModMain.ModMain.convert EDKB12WS.ModMain.convert EDKB12WS (in EDKB12WS.exe) ModMain.convert Method EDKB12WS.ModMain topic_00000000000003C8
ModMain.convert Method

Assembly: EDKB12WS (in EDKB12WS.exe)
Visual Basic
Public Shared Function convert( _
  ByVal x As ]]>Stringa]]>]]> _
) As ]]>Stringa]]>]]>
C#
public static ]]>stringa]]>]]> convert(
  ]]>stringa]]>]]> x
)
C++
public:
static ]]>Stringa]]>]]>^ convert(
  ]]>Stringa]]>]]>^ x
)
JScript
public static function convert(
   x : ]]>Stringa]]>]]>
) : ]]>Stringa]]>]]>;
Parametersx
$END-IFNOTEMPTY$
Visual Basic Copy CodeCopy Code ]]>
Function convert(ByVal x As String) As String
   Dim s As String
   Dim s1 As String
   Dim i As Integer
   s = x
   i = InStr(s, Chr(13))
   While i > 0
       s = Left(s, i - 1) & "#" & Right(s, Len(s) - (i))
       If Mid(s, i + 1, 1) = Chr(10) Then
           s = Left(s, i) & Right(s, Len(s) - (i + 1))
       End If
       i = InStr(s, Chr(13))
   End While
   i = InStr(s, "#")
   While i > 0
       s = Left(s, i - 1) & vbCrLf & Right(s, Len(s) - (i))
       i = InStr(s, "#")
   End While
   convert = s
End Function
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2 The .NET Framework does not support all versions of every platform. For a list of the supported versions, see ]]>System Requirementsa]]>]]>.
.NET Framework Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0
.NET Compact Framework Supported in: 3.5, 2.0, 1.0
XNA Framework Supported in: 3.0, 2.0, 1.0
Reference ModMain ClassModMain Class
ModMain ModMain MembersModMain ModMain Members