Visual Basic Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VB Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Unicode
Upload
XML
XMP
Zip Compression

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA


VB Strings
VB Byte Array

Unreleased...
Bzip2
LZW
Bz2
Icon

 

 

 

 

 

 

 

Entity Decoding

Download Chilkat XML ActiveX

This example demonstrates how to decode entities in a VB string. (Using the free Chilkat XML ActiveX component)

    Dim x As New ChilkatXml
    
    ' When entity decoded, this message reads: Hello! <CopyRight><CRLF>ABC ZZZ ABC zzz
    x.LoadXml "<Row Message=""Hello! &copy;&#xD;&#xA;&#x41;&#x42;&#x43; ZZZ &#65;&#66;&#67; zzz"" />"

    Dim s As String
    
    ' Gets the string, but entities are not automatically decoded.
    s = x.GetAttrValue("Message")
    MsgBox s
    
    ' Decode the entities.  The decoded bytes are treated as ANSI characters
    ' and converted to Unicode and returned to the (Unicode) VB6 string.
    s = x.DecodeEntities(s)
    MsgBox s

 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2008 Chilkat Software, Inc. All Rights Reserved.