Xojo Plugin
Xojo Plugin
Appending Strings to BinData
Demonstrates appending strings to a BinData..Chilkat Xojo Plugin Downloads
Dim binData1 As New Chilkat.BinData
// Append a string using a 1-byte per char encoding
Dim success As Boolean
success = binData1.AppendString("This is a test","windows-1252")
System.DebugLog(binData1.GetEncoded("hex"))
// The bytes contained within the binData1 (in hex) are: 54,68,69,73,20,69, ...
Dim binData2 As New Chilkat.BinData
// Append a string using a 2-byte per char encoding
success = binData2.AppendString("This is a test","utf-16")
System.DebugLog(binData2.GetEncoded("hex"))
// The bytes contained within the binData2 (in hex) are: 54,00,68,00,69,00,73,00,20,00,69,00, ...