Visual Basic Examples

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

VB Examples

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

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

Extract Substring from the Middle of a String

Use the Mid$ to extract a substring from the middle of a string. Note: Be sure to use Left$, Right$ and Mid$ instead of "Left", "Right", and "Mid" because if you omit the "$", Visual Basic returns a Variant that must be re-converted back to a string when the result is used in another string expression.

MyString = "1234567890"

startPos = 3
charCount = 4

Print Mid$(MyString,startPos,charCount)      ' Prints "3456"

 

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