FoxPro Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



Visual FoxPro 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
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA
SSH Key
SSH
SSH Tunnel
SFTP

Unreleased...
Bzip2
LZW
Bz2
Icon

 

Non-Chilkat Links
Text and String Handling

Get Base Domains

Demonstrates how to accumulate a list of unique domain names referenced from outbound URLs.

Download Chilkat Spider ActiveX

LOCAL loSpider
LOCAL loDomainList
LOCAL lnSuccess
LOCAL i
LOCAL lcUrl

* The Chilkat Spider component/library is free.
loSpider = CreateObject('Chilkat.Spider')

loDomainList = CreateObject('Chilkat.CkStringArray')

* Set the Unique property so that duplicates are not added.
loDomainList.Unique = 1

* Crawl the home page of joelonsoftware.com and get the outbound URLs
loSpider.Initialize("www.joelonsoftware.com")
loSpider.AddUnspidered("http://www.joelonsoftware.com/")

lnSuccess = loSpider.CrawlNext()

* Build a list of unique domains.

FOR i = 0 TO loSpider.NumOutboundLinks - 1
    lcUrl = loSpider.GetOutboundLink(i)
    loDomainList.Append(loSpider.GetDomain(lcUrl))
NEXT

* Display the domains.
FOR i = 0 TO loDomainList.Count - 1
    ? loDomainList.GetString(i)
    ? loSpider.GetBaseDomain(loDomainList.GetString(i)) + CHR(13)+CHR(10)
NEXT

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

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

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