FoxPro Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

Visual FoxPro Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
Email Object
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
Socket
Spider
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Amazon S3
DKIM / DomainKey
NTLM
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA
FileAccess
Bzip2
LZW

 

Non-Chilkat Links
Text and String Handling

Extract all HTML Objects from a Web Page

Demonstrates how to download a Web page (at a URL) and extract all HTML objects. Eg. images, links, CSS files, JavaScript files, etc.

Download Chilkat MHT ActiveX

LOCAL loMht
LOCAL lnSuccess
LOCAL lcMhtDoc
LOCAL lcUnpackDir
LOCAL lcHtmlFilename
LOCAL lcPartsSubdir

loMht = CreateObject('Chilkat.Mht')

lnSuccess = loMht.UnlockComponent("Anything for 30-day trial")
IF (lnSuccess <> 1) THEN
    ? loMht.LastErrorText
    QUIT
ENDIF

*  Download a URL into an in-memory MHT web archive contained
*  in a string variable:

lcMhtDoc = loMht.GetMHT("http://www.gopackaging.com/")
IF (lcMhtDoc = NULL ) THEN
    ? loMht.LastErrorText
    QUIT
ENDIF

*  Now extract the HTML and embedded objects:

lcUnpackDir = "/Users/chilkat/temp/"

lcHtmlFilename = "gopackaging.html"

lcPartsSubdir = "objects"
*  Extract to /Users/chilkat/temp/gopackaging.html.
*  images and other embedded objects are placed in
*  /Users/chilkat/temp/objects.  Directories are automatically
*  created if they don't already exist.
lnSuccess = loMht.UnpackMHTString(lcMhtDoc,lcUnpackDir,lcHtmlFilename,lcPartsSubdir)
IF (lnSuccess <> 1) THEN
    ? loMht.LastErrorText
ELSE
    =MESSAGEBOX("Unpacked!")
ENDIF


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

Mail Component · .NET Email Component · ASP Mail Component · XML Parser