Visual Basic 6.0
Visual Basic 6.0
StringBuilder GetEncoded
Demonstrates the Chilkat StringBuilder GetEncoded method.Chilkat Visual Basic 6.0 Downloads
Dim s As String
s = "The quick brown fox jumps over the lazy dog"
Dim sb As New ChilkatStringBuilder
success = sb.Append(s)
' output: The quick brown fox jumps over the lazy dog
Debug.Print sb.GetAsString()
' Get the string encoded to base64, without changing the contents of sb.
' output: VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZw==
Debug.Print sb.GetEncoded("base64","utf-8")
' The contents of sb are not changed..
' output: The quick brown fox jumps over the lazy dog
Debug.Print sb.GetAsString()