<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-604032532126097703</id><updated>2012-02-16T12:03:56.919-08:00</updated><category term='Visual Basic 6.0'/><category term='Download'/><title type='text'>Blog seputar belajar komputer</title><subtitle type='html'>Belajar dari lahir sampai ke liang lahat</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-6882413127000786678</id><published>2008-07-13T20:41:00.000-07:00</published><updated>2008-07-13T21:28:45.497-07:00</updated><title type='text'>Menjalankan YM 8 lebih dari 1 Account</title><content type='html'>&lt;span style="font-family: courier new;"&gt;Yahoo Messenger (YM) merupakan salah satu messenger yang paling dipakai untuk berkomunikasi via media teks (chat) secara online. Dengan menggunakan YM Anda dapat berkomunikasi dengan teman, saudara atau relasi. &lt;/span&gt;&lt;p style="text-align: justify; font-family: courier new;"&gt;Normalnya Anda hanya dapat menjalankan satu kali YM pada saat bersamaan. Dengan tips berikut ini Anda bisa menjalankan YM beberapa kali sehingga pada saat yang sama Anda dapat login dengan menggunakan beberapa account yahoo Anda.&lt;/p&gt;&lt;div style="font-family: courier new;"&gt; &lt;/div&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt; &lt;/div&gt;&lt;p style="text-align: justify; font-family: courier new;"&gt;Caranya adalah sebagai berikut:&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt; &lt;/div&gt;&lt;ol style="text-align: justify; font-family: courier new;"&gt;&lt;li&gt; Jalankan registry editor dengan cara klik tombol Start - Run. Ketik &lt;strong&gt;regedit&lt;/strong&gt; lalu tekan enter.&lt;/li&gt;&lt;li&gt;Masuk ke key &lt;strong&gt;HKEY_CURRENT_USER\Software\Yahoo\Pager\Test&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Pada panel sebelah kanan, klik kanan dan pilih menu New - DWord Value.&lt;/li&gt;&lt;li&gt;Ketik &lt;strong&gt;Plural&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Klik 2x pada &lt;strong&gt;Plural &lt;/strong&gt;dan isi dengan nilai &lt;strong&gt;1&lt;/strong&gt; (satu).&lt;/li&gt;&lt;li&gt;Keluar dari registry editor.&lt;/li&gt;&lt;/ol&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt; &lt;/div&gt;&lt;p style="text-align: justify; font-family: courier new;"&gt;Jika Anda mengikuti langkah di atas dengan benar, maka Anda bisa menjalankan YM beberapa kali.&lt;/p&gt;&lt;div style="text-align: justify; font-family: courier new;"&gt; &lt;/div&gt;&lt;p style="text-align: justify; font-family: courier new;"&gt;Selain dengan cara di atas, Anda dapat  mendownload file &lt;a href="http://www.ziddu.com/download/1643485/ym8multi.zip.html" title="ym8multi.zip"&gt;ym8multi.zip&lt;/a&gt; dan mengklik 2x pada setting registry di dalamnya. Untuk mengembalikan setting seperti semua Anda dapat mendownload &lt;a href="http://www.ziddu.com/download/1643504/ym8multi_unist.zip.html" title="ym8multi_unist.zip"&gt;ym8multi_unist.zip.&lt;/a&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: courier new;"&gt;Di kutip dari klik-kanan.com&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.klik-kanan.com/blog/wp-content/uploads/2007/11/ym8multi_unist.zip" title="ym8multi_unist.zip"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-6882413127000786678?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/6882413127000786678/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/07/menjalankan-ym-8-lebih-dari-1-account.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/6882413127000786678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/6882413127000786678'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/07/menjalankan-ym-8-lebih-dari-1-account.html' title='Menjalankan YM 8 lebih dari 1 Account'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-9044145878845950570</id><published>2008-07-07T23:59:00.000-07:00</published><updated>2008-07-08T00:01:11.711-07:00</updated><title type='text'>Setting internet menggunakan modem hp gsm dan cdma</title><content type='html'>&lt;p align="justify"&gt;&lt;strong style="font-weight: normal;"&gt;Untuk melakukan koneksi internet menggunakan PC berikut langkah-langkah yang perlu dilakukan.&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-weight: bold;" align="justify"&gt;&lt;strong style="font-weight: normal;"&gt;Setting pada PC :&lt;/strong&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;strong style="font-weight: normal;"&gt;&lt;/strong&gt;1. Klik star-control panel-phone and modem.&lt;br /&gt;2. klik modem-add&lt;br /&gt;3. beri checklist pada "&lt;span style="font-style: italic;"&gt;Don't detect&lt;/span&gt;", klik Next&lt;br /&gt;4. klik havedisk, browse ke CD/file driver hasil downloadan.&lt;br /&gt;5. klik pada modem sesuai HP, pilih port sesuai instalan&lt;br /&gt;6. jika berhasil pada modem muncul jenis modem dan port-nya.&lt;br /&gt;7. lalu pada control panel klik network connection&lt;br /&gt;8. klik create new connection-next&lt;br /&gt;9. pilih connent to the internet&lt;br /&gt;10.pilih set up my connection manually-next.&lt;br /&gt;11.pilih connect using a dial-up modem-next&lt;br /&gt;12.pada ISP ketik sesuai kartu (asal juga tidak menjadi masalah)-next&lt;br /&gt;13.phone number sesuai dengan tabel dibawah&lt;br /&gt;&lt;/p&gt;&lt;p align="justify"&gt;&lt;span style="font-weight: bold;"&gt;   *99***1#&lt;/span&gt; : Mentari, simpati, XL, halo, matrix, im3&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   #777&lt;/span&gt;     : fren, star one, flexi&lt;br /&gt;&lt;/p&gt;14.next&lt;br /&gt;15.untuk user dan password sesuaikan dengan data dibawh ini.&lt;br /&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span style="font-weight: bold;"&gt;   Mentari&lt;/span&gt;&lt;br /&gt;user     : indosat&lt;br /&gt;password : indosat&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Simpati dan Halo&lt;/span&gt;&lt;br /&gt;user     : wap&lt;br /&gt;password : wap123&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   matrix&lt;/span&gt;&lt;br /&gt;user     : kosongkan&lt;br /&gt;password : kosongkan&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   IM3&lt;/span&gt;&lt;br /&gt;user     : gprs&lt;br /&gt;password : im3&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Fren&lt;/span&gt;&lt;br /&gt;user     : m8&lt;br /&gt;password : m8&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Flexi&lt;/span&gt;&lt;br /&gt;user     : telkomnet@flexi&lt;br /&gt;password : telkom&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Starone  &lt;/span&gt;&lt;br /&gt;user     : starone&lt;br /&gt;password : indosat&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   XL&lt;/span&gt;&lt;br /&gt;user     : xlgprs&lt;br /&gt;password : proxl&lt;br /&gt;&lt;br /&gt;16.Next&lt;br /&gt;17.cheklist pada "add a shortcut........."&lt;br /&gt;18.klik finish&lt;br /&gt;19.klik 2x shortcut yang muncul dilayar&lt;br /&gt;20.klik Dial&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-9044145878845950570?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/9044145878845950570/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/07/setting-internet-menggunakan-modem-hp.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/9044145878845950570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/9044145878845950570'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/07/setting-internet-menggunakan-modem-hp.html' title='Setting internet menggunakan modem hp gsm dan cdma'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-8428247286684133025</id><published>2008-07-04T00:10:00.000-07:00</published><updated>2012-01-06T13:06:15.085-08:00</updated><title type='text'>Step by step visual basic</title><content type='html'>&lt;div style="font-family: courier new; text-align: justify;"&gt;Visual basic adalah suatu &lt;span style="font-style: italic;"&gt;development tool &lt;/span&gt;(program untuk membuat) aplikasi pada lingkungan windows. Dalam pengembangan aplikasi Visual basic menggunakan pendekatan Visual dalam membangun &lt;span style="font-style: italic;"&gt;user interface &lt;/span&gt;(tatap muka pengguna) dalam bentuk form, sedang untuk penulisan koding (pemrograman) menggunkan dialek bahasa basic, yang relatif mudah karena menggunakan bahasa inggris sehari-hari.&lt;br /&gt;&lt;br /&gt;Visual Basic atau sering disebut vb telah menjadi tool terkenal bagi para &lt;span style="font-style: italic;"&gt;programmer&lt;/span&gt; pemula maupun para developer untuk mengembangkan aplikasi baik dalam skala kecil maupun skala besar.&lt;br /&gt;&lt;br /&gt;Dalam lingkungan windows, user interface memegang peranan penting, karena dalam aplikasi yang kita buat, pengguna aplikasi senantiasa berinteraksi dengan user interface tanpa menyadari bahwa dibelakangnya terdapat perintah perintah program yang mendukung tampilan dan proses tersebut.&lt;br /&gt;&lt;br /&gt;Pada pemrograman visual pengembangan aplikasi dimulai dengan merancang user interface, kemudian mengatur properti dari objek-objek yang digunakan dalam user interface baru dapat menuliskan kode program untuk menginstruksikan pada komputer.  Ok cukup sudah berbasa basi nya, sekarang kita langsung ke materi.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Berkenalan dengan IDE VB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;IDE (Integrated Development Environment) adalah lingkungan dimana kita dapat melakukan perancangan user interface,  menulis kode (instruksi), testing, debuging(koreksi), sampai dengan mengkompilasi (membuat exe / executable). Sampai disini anda sudah punya gambaran? jika jawabanya belum maka kita lanjutkan..Panduan &lt;a href="http://uploads.bizhat.com/file/106073"&gt;step by step vb&lt;/a&gt;, password hendrasoewarno untuk belajar VB6.0 lebih lanjut.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-8428247286684133025?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/8428247286684133025/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/07/step-by-step.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/8428247286684133025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/8428247286684133025'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/07/step-by-step.html' title='Step by step visual basic'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-7801342923146515335</id><published>2008-07-03T23:07:00.000-07:00</published><updated>2008-07-03T23:56:35.268-07:00</updated><title type='text'>Teknik mengetik 10 jari</title><content type='html'>&lt;span style="font-family: courier new;"&gt;Dapat mengetik menggunakan 10 jari merupakan hal yang mengasyikkan (apalagi kalo lagi banyak tugas / kerjaan). Untuk mengoptimal kan 10 jari kita dalam mengetik dibutuhkan latihan serta teknik yang benar. Banyak sekali software dipasaran yang berfungsi untuk melatih / membantu melincahkan jari dalam mengetik, salah satu nya adalah &lt;/span&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;Typing Master.&lt;br /&gt;&lt;br /&gt;Typing master &lt;/span&gt;&lt;span style="font-family: courier new;"&gt;adalah program untuk melatih penempatan 10 jari pada papan keyboard&lt;/span&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;, &lt;/span&gt;&lt;span style="font-family: courier new;"&gt;program ini  menurut saya cukup interaktif dan efektif dalam melatih kemampuan mengetik 10 jari. Dasarnya adalah penempatan jari tangan kiri (Misal Ki-Kelingking kiri, Mi-Manis kiri, Ti-Tengah kiri, Li-Telunjuk tangan kiri dan Ii-Ibu jari kiri. Ka-Kelingking kanan dan seterusnya)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Ki untuk tombol Q A Z ( pada waktu tidak dalam keadaan mengetik berada di tombol A)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Mi untuk tombol W S X ( pada waktu tidak dalam keadaan mengetik berada di tombol S)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Ti untuk tombol E D C ( pada waktu tidak dalam keadaan mengetik berada di tombol D)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Li untuk tombol R F V T G B ( pada waktu tidak dalam keadaan mengetik berada di tombol F)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Ii dan Ia untuk tombol spasi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Ka untuk tombol : P ? ( pada waktu tidak dalam keadaan mengetik berada di tombol :)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Ma untuk tombol O L &gt; ( pada waktu tidak dalam keadaan mengetik berada di tombol L)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Ta untuk tombol I K &lt; ( pada waktu tidak dalam keadaan mengetik berada di tombol K) La untuk tombol U J M Y H N ( pada waktu tidak dalam keadaan mengetik berada di tombol J)  Anda penasaran ??, Typing Master dapat anda coba &lt;/span&gt;&lt;a style="font-family: courier new;" href="http://uploads.bizhat.com/file/106230"&gt;disini.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-7801342923146515335?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/7801342923146515335/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/07/teknik-mengetik-10-jari.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/7801342923146515335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/7801342923146515335'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/07/teknik-mengetik-10-jari.html' title='Teknik mengetik 10 jari'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-3945482219017169090</id><published>2008-07-03T02:02:00.000-07:00</published><updated>2012-01-06T14:13:16.412-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Download'/><title type='text'>Kumpulan Software Bagian 1</title><content type='html'>&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Verdana,sans-serif; text-align: justify;"&gt;&lt;span style="font-size: x-small;"&gt;Bagi anda yang ingin belajar mengetik 10 jari dapat menggunakan Typing Master, program dapat di download &lt;a href="http://uploads.bizhat.com/file/106230"&gt;disini.&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Bagi yang suka utak-atik windows pake TuneUp Utilities, &lt;a href="http://uploads.bizhat.com/file/106357"&gt;disini&lt;/a&gt; ada yang portable.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Seperti Tuneup SpeedPC juga bisa untuk doping PC kita, agar lebih kuencenggg download &lt;a href="http://uploads.bizhat.com/file/162325"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Portable Recover File, cukup powerfull dan bisa jadi obat sakit kepala jika file-file penting kita secara sengaja maupun tidak sengaja terhapus.klik &lt;a href="http://uploads.bizhat.com/file/162438"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;PCMAV 1.4 Build 2 juga ada &lt;a href="http://uploads.bizhat.com/file/106383"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;CAV merupakan program kill vb proses, bisa juga untuk normalisasi file yang di super Hidden (lumayan powerfull) ada &lt;a href="http://uploads.bizhat.com/file/117107"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;ANSAV Antivirus portable bisa juga untuk Fix Registry ada &lt;a href="http://uploads.bizhat.com/file/117320"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;AIDA32 adalah software untuk mengetahui isi &amp;amp; driver jeroan komputer, klik &lt;a href="http://uploads.bizhat.com/file/109134"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Goldwave potable, software kompresi file mp3 dll mudah, powerfull, portable lagi, klik &lt;a href="http://www.ziddu.com/download/1643925/GoldWave.rar.html"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Format rar adalah format untuk meringkas ukuran file, Winrar ada &lt;a href="http://uploads.bizhat.com/file/109162"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Dengan menghapus file dalam prefecth (Win XP) dan sedikit modif setingan loading Win XP jadi lebih kuenceng, file bisa di download &lt;a href="http://uploads.bizhat.com/file/162310"&gt;disini&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;Hiren's mungkin jd tool yg lumayan powerfull untuk oprek Hardisk, download bagian 1, bagian 2, bagian 3, bagian 4.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-3945482219017169090?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/3945482219017169090/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/07/bagian-1.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/3945482219017169090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/3945482219017169090'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/07/bagian-1.html' title='Kumpulan Software Bagian 1'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-4669317544546521230</id><published>2008-07-03T01:22:00.000-07:00</published><updated>2008-07-03T02:01:34.593-07:00</updated><title type='text'>Belajar Visual Basic</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;B&lt;/span&gt;agi anda yang masih awam dan ingin mempelajari VB 6.0 dapat di download &lt;a href="http://uploads.bizhat.com/file/106073"&gt;disini&lt;/a&gt;  , password hendrasoewarno. &lt;span style="font-weight: bold;"&gt;Terima kasih saya haturkan pada Bpk Hendra Soewarno S.T yang telah menulis e-book ini.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-4669317544546521230?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/4669317544546521230/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/07/belajar-visual-basic.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/4669317544546521230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/4669317544546521230'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/07/belajar-visual-basic.html' title='Belajar Visual Basic'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-6705565736629787820</id><published>2008-07-02T03:27:00.000-07:00</published><updated>2008-07-02T03:49:52.997-07:00</updated><title type='text'>Penawaran Perawatan Komputer</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;br /&gt;Komputer  merupakan  sarana  pendukung  kelancaran  pekerjaan,  oleh  karena  rutinitas pemakaian maka diperlukan perawatan yang tepat agar dapat mempertahankan performa.&lt;br /&gt;&lt;br /&gt;Dalam banyak hal kerusakan dapat disebabkan oleh korosi dan kesalahan pemakaian (human error).&lt;br /&gt;&lt;br /&gt;Dengan perawatan secara tepat dan berkala diharapkan umur pemakaian dari komputer lebih panjang dengan begitu maka optimalisasi peralatan komputer dapat terwujud.&lt;br /&gt;&lt;br /&gt;Beserta  ini  saya  sampaikan  penawaran  kerjasama  perawatan  komputer  dengan  rincian sebagai berikut :&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;PERAWATAN KOMPUTER / MAINTENANCE.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.  Servis kecil.&lt;/span&gt;&lt;br /&gt;Perawatan hardware komputer, (Cek kerusakan, pembersihan debu di dalam CPU, monitor, keyboard &amp;amp; mouse yang berarti pencegahan timbulnya korosi pada hardware).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.  Perawatan Sistem Operasi&lt;/span&gt;&lt;br /&gt;Perawatan software komputer, (pembersihan file-file sampah, temp, cookies dan virus di dalam system operasi komputer).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Harga perawatan per komputer Rp. 125.000,-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Harga perawatan per komputer &gt; = 5 unit Rp. 100.000,-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Harga perawatan per komputer &gt; = 10 unit Rp. 75.000,-&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* Harga berlaku untuk daerah Jakarta dan Bekasi.&lt;br /&gt;* Harga termasuk transport&lt;br /&gt;* Harga diluar penggantian spare part&lt;br /&gt;&lt;br /&gt;Demikian penawaran kerjasama perawatan komputer ini saya sampaikan. Atas waktu dan perhatiannya  saya sampaikan terima kasih.&lt;br /&gt;&lt;br /&gt;Hub : Tera Mandiri&lt;br /&gt;021 889 54989&lt;br /&gt;021 888 55177&lt;br /&gt;021 321 72547&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-6705565736629787820?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/6705565736629787820/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/07/komputer-merupakan-sarana-pendukung.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/6705565736629787820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/6705565736629787820'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/07/komputer-merupakan-sarana-pendukung.html' title='Penawaran Perawatan Komputer'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-8805158704836087628</id><published>2008-06-14T01:31:00.000-07:00</published><updated>2008-06-14T01:38:11.769-07:00</updated><title type='text'>Kiat selamat di saat krisis</title><content type='html'>&lt;p style="font-weight: bold;font-family:courier new;" &gt;&lt;span style="font-size:100%;"&gt;Oleh: Eko Endarto&lt;/span&gt;&lt;/p&gt; &lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;span style="font-family:courier new;"&gt;  &lt;/span&gt;&lt;/span&gt; &lt;p  style="text-align: justify; font-weight: bold;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;Dikutip dari Kontan, Mei 2008&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Kenaikan BBM dan diikuti    dengan kenaikan bahan pangan sepertinya sudah tidak bisa ditahan lagi. Bahan    pokok yang menjadi kebutuhan harian itu harus ditebus dengan pengorbanan dana    yang tidak lagi sedikit.Bayangkan disaat penghasilan belum mungkin meningkat    karena perusahaan sulit akibat kenaikan BBM, kita masih harus menerima kenyataan    bahwa uang belanja dan uang transport yang sudah disiapkan ternyata tidak lagi    bisa digunakan sebagaimana mestinya.&lt;br /&gt;Dengan keadaan demikian, apa yang mungkin kita lakukan ?&lt;/strong&gt;&lt;/span&gt; &lt;/p&gt;&lt;p  style="text-align: justify;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Memulainya dari dalam&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Permasalahan keuangan kita    terletak pada satu kenyataan yaitu tidak cukupnya penghasilan yang kita peroleh.    Dan jawaban yang tepat untuk mengatasinya juga jelas yaitu membuatnya menjadi    cukup. Sebagian dari kita akan berkata menapatkan penghasilan tambahan adalah    jalan keluarnya. Saya tidak bisa menyalahkan anggapan seperti itu. Tapi apakah    selalu penghasilan tambahan menjadi solusi ? Padahal harus diakui mendapatkan    penghasilan dari luar tidaklah mudah. Bahkan kadangkala pengorbanan yang harus    dilakukan tidak seimbang dengan hasil yang diperoleh. Belum lagi tidak semua    orang bisa melakukannya. Untuk itu, sebelum memutuskan untuk mencoba mencari    tambahan penghasilan dari luar, mungkin pembenahan di dalam bisa dilakukan terlebih    dahulu. Sebab adalah suatu yang sia-sia bila kita menambah penghasilan namun    tidak ada perubahan pola dalam menggunakan. Sebab yakinlah masalah keuangan    bukan bergantung pada berapa besar yang kita dapatkan tapi bagaimana mempergunakannya.    &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;ul  style="text-align: justify;font-family:courier new;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Evaluasi penggunaan Dana&lt;br /&gt; Langkah awal untuk menstabilkan keuangan adalah membuat evaluasi terhadap      keuangan kita. Coba lakukan pencatatan bulan ini apa saja pengeluaran yang      keluarga telah lakukan untuk memenuhi seluruh kebutuhannya. Sebuah keluarga      pernah melakukan konsultasi untuk mengelola pengeluaran bulanannya yang katanya      selalu di atas target yang telah ditentukan. Setelah dilakukan evaluasi secara      bersama-sama, maka diketahui bahwa biaya belanja keluarga selalu melebihi      dari anggaran tiap bulan. Ini terjadi karena pada saat belanja, keluarga tersebut      selalu melakukannya bersama-sama dan selalu mengeluarkan uang lebih untuk      acara sarapan yang tidak dianggarkan sebelumnya. Masalahnya dana ini selalu      diambil dari anggaran belanja sehingga uang belanja selalu melebihi target.  &lt;br /&gt; Untuk itu mulai saat ini pisahkan pengeluaran yang memang utama dengan pengeluaran      yang pengikutnya. Dengan demikian akan diketahui berapa besar pengeluaran      riil keluarga tiap bulan.&lt;br /&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Buat Prioritas pengeluaran&lt;br /&gt; Keluarkan yang harus dikeluarkan, dan tahan untuk yang belum dibutuhkan. Kadangkala      kita merasa telah berusaha untuk mengeluarkan hanya yang dibutuhkan, dan telah      meninggalkan yang diinginkan. Tapi bila ditanya apa kriteria butuh dan ingin      ? bagaimana membedakannya ? mungkin tidak semua bisa menjawabnya secara pasti.      Butuh adalah pengeluaran yang harus dilakukan, dan ingin adalah pengeluaran      yang masih bisa ditunda. Jadi dengan definisi sederhana ini kita seharusnya      bisa membuat dengan jelas apa saja prioritas dalam pengeluaran keluarga. Coba      tanyakan ke diri Anda pada saat mengeluarkan uang.&lt;br /&gt; “Apakah pengeluaran ini bisa ditunda ? apa akibatnya bila ditunda?”&lt;br /&gt; bila jawabannya adalah tidak bisa ditunda atau bila ditunda akan mengakibatkan      efek negatif yang lebih tinggi, maka itu adalah kebutuhan. Namun bila dari      pertanyaan pada diri Anda tadi terjawab bahwa ditundapun tidak menjadi masalah,      atau kalau ditunda tidak memberikan efek negatif terlalu besar, maka itu adalah      keinginan.&lt;br /&gt; Saat ini komunikasi adalah suatu kebutuhan. Dan membeli pulsa otomatis adalah      kebutuhan. Bila dengan ditundanya membeli pulsa akan berakibat fatal kepada      diri Anda dan keluarga misalnya akan mengganggu usaha keluarga, maka membeli      pulsa adalah kebutuhan. tapi bila penundaan membeli pulsa hanya berakibat      Anda tidak bisa menghubungi rekan arisan atau rekan nongkrong Anda, maka itu      adalah keinginan.&lt;br /&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Redam pengeluaran tidak      terdeteksi&lt;br /&gt; Salah satu kegagalan dalam keuangan keluarga adalah terjadinya pemborosan.      Sebuah keluarga pernah melakukan konsultasi tentang hal tersebut. Pengeluaran      telah dianggarkan semua, dan secara hitam di atas putih kelebihan dana terdeteksi      ada. tapi kenapa di akhir bulan uang tersebut selalu habis bahkan kurang ?      Walaupun saya tahu bahwa kita bisa saja melakukan penyusuran satu persatu,      tapi saya rasa hal itu akan membosankan. Jadi kenapa tidak kita rubah polanya.      Saya menyarankan kepada keluarga itu untuk menambahkan 1 hal yang tidak pernah      mereka lakukan sebelumnya yaitu menyelamatkan kelebihan dana mereka. Tiap      awal bulan, setelah menghitung dan membuat anggaran, keluarga tersebut biasanya      membiarkan kelebihan dana mereka di dalam tabungan sebagai dana tak terduga.      Maka mulai saat setelah konsultasi, mereka harus meletakkan kelebihan dana      tersebut dalam bentuk barang produktif, dalam hal ini keluarga tersebut setuju      untuk membeli emas koin. Apa yang terjadi ? setelah session konsultasi , tiap      bulan keluarga tersebut selalu bisa membeli mas koin dan selalu bertambah      terus jumlahnya tiap bulan. Bagaimana dengan dana tak terduga ? saya sarankan      untuk menggunakan kartu kredit untuk hal tersebut. Tapi tentu saja dengan      konsekuensi harus membayarnya setelah di tagih. Dananya ? ya dari menjual      emas. Tapi entah mengapa sampai saat ini kartu tersebut belum pernah digunakan.  &lt;br /&gt; Kadangkala sadar atau tidak , kalau kita menyisakan uang untuk sesuatu yang      tak terduga, maka hal tak terduga itu tersebut bisa terjadi. Untuk itu jangan      mengharapkan untuk terjadi, caranya pisahkan dulu kelebihan dana Anda dimuka,      agar tidak menjadi pengeluaran tak terduga dan tak terdeteksi&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Menyelesaikannya dari luar&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;p  style="text-align: justify;font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Di atas kita sudah membahas    bagaimana kita harus bertindak dari dalam untuk menghadapi kemungkinan kenaikan    harga-harga. Sekarang saatnya untuk menyelesaikannya dari luar. Sebab pada dasarnya    keuangan keluarga bergantung pada dua aspek yang mempengaruhi yaitu dari dalam    bagaimana seseorang mengatur dan mengelola uangnya dan dari luar yaitu bagaimana    seseorang mengatur dan mengelola semua godaan dan tawaran yang bisa mempengaruhi    keuangan keluarga secara keseluruhan. &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;ul  style="text-align: justify;font-family:courier new;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Menghindari Utang Baru  &lt;br /&gt; Kalau tidak terpaksa, hindari untuk membentuk utang baru terlebih bila utang      tersebut adalah utang konsumtif. Ingat pengeluaran Anda saat ini akan terus      meningkat, dan memang sepertinya tambahan dana dari luar adalah salah satu      jalan yang bisa ditempuh. Tapi utang bukanlah tambahan dana melainkan tambahan      kewajiban yang mau tidak mau harus kita selesaikan. Terlebih dengan kenaikan      harga, tidak menutup kemungkinan akan naik juga suku bunga pinjaman yang menjadi      kewajiban Anda.&lt;br /&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Diskon tidak selalu menjadi      jawaban&lt;br /&gt; Kalau bicara diskon, biasanya kita mengasumsikannya dengan penyelamat. Bayangkan      disaat semua harga tinggi, masih ada yang mau member harga rendah.&lt;br /&gt; Tapi kalau saya boleh member saran dalam mengeluarkan dana, yang terpenting      bukan berapa besar yang yang Anda keluarkan, tapi untuk apa Anda mengeluarkannya.      Daripada mengeluarkan dana sedikit untuk barang yang tidak dibutuhkan atau      malah barang yang hanya membuat Anda menjdai lebih konsumtif; mungkin lebih      baik membeli barang dengan harga sedikit lebih mahal tetapi memang kita butuhkan.  &lt;br /&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Menghindari Spekulasi      Investasi&lt;br /&gt; Satu lagi yang harus dihindari adalah spekulasi investasi. Dengan makin sulitnya      keadaan ekonomi, makin banyak orang yang menawarkan alternative penyelesaian      yang salah satunya dari sisi investasi.Pada saat demikian, biasanya jenis      investasi yang memberikan hasil maksimal dianggap sebagai jalan keluar. Namun      bila kita tidak mengerti dan menguasainya, jangan pernah masuk di dalamnya.  &lt;br /&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Buat perlindungan&lt;br /&gt; Salah satu cara untuk melakukan penghematan dan membantu keuangan adalah dengan      memindahkan biaya yang mungkin terjadi kepada pihak lain. Dan hal itu bisa      dilakukan oleh pihak asuransi. Bila dulu kita terbiasa dengan menyelesaikan      semua masalah melalui uang pribadi, mungkin sudah saatnya Anda menyerahkan      masalah yang besar-besar kepada pihak asuansi. Biaya kesehatan, perbaikan      kendaraan dan perlindungan rumah, bisa sebagai permulaan langkah. Ingat dengan      naiknya biaya BBM maka otomatis biaya lainnya juga naik termasuk kesehatan,      perbaikan dan pembangunan.&lt;br /&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;Mencoba menambah penghasilan&lt;br /&gt; Terakhir, memang tidak ada jalan lain selain mencoba menambah penghasilan.      Mulailah berusaha mengali potensi diri, kenali kondisi lingkungan dan selalu      cari alternative adalah salah satu cara untuk mendapatkan tambahan penghasilan.      Tidak perlu besar, tapi buatlah itu menjadi suatu yang rutin. Sehingga diantara      semua biaya yang naik tadi, ada sedikit tambahan penghasilan untuk sekedar      bisa menambah investasi kita&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-8805158704836087628?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/8805158704836087628/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/06/kiat-selamat-di-saat-krisis.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/8805158704836087628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/8805158704836087628'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/06/kiat-selamat-di-saat-krisis.html' title='Kiat selamat di saat krisis'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-4056705109545556159</id><published>2008-06-14T01:11:00.000-07:00</published><updated>2008-07-02T01:32:07.310-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic 6.0'/><title type='text'>Visual Basic Dictionary 2</title><content type='html'>&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;String-Handling Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VBScript supports all the string-handling functions of Visual Basic. Atypical script, similar to a Visual Basic application, spends much of its execution time manipulating strings (validity tests, parsing), and VBScript provides numerous functions for that purpose. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Asc(character), AscB(string), AscW(string) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Asc() function returns the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;character code corresponding to the character argument, and it works on all systems,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;regardless of whether they support Unicode characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The AscB() function is similar, except that instead of returning the character code for the first character, it returns the first byte.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The AscW() function returns the Unicode character code except on platforms that do not support Unicode, in which case, the behavior is identical to that of the Asc() function. If you call the Asc() function with a string instead of a character, the character&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;code of the string’s first character is returned. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Chr(number), ChrB(number), ChrW(number) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Chr() function is the inverse of the Asc() function and returns the character associated with the specified character code. Use this function to print characters that don’t appear on the keyboard (such as line feeds or special symbols). The ChrB() function is used with byte data contained in a string. Instead of returning a character, which may be one or two bytes, ChrB() always returns a single byte.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The ChrW() function returns a string containing the Unicode character except on platforms that don’t support Unicode, in which case, the behavior is identical to that of the Chr() function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LCase(string), UCase(string) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The LCase() function accepts a string as an argument and converts it to lowercase; the Ucase() function accepts a string as an argument and converts it to uppercase. After the following statements are executed: &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title = ÒMastering Visual BasicÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LTitle = LCase(Title)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;UTitle = UCase(Title)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LTitle &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;contains the string “mastering visual basic”, and the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;UTitle &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;contains the string “MASTERING VISUAL BASIC”. Auseful function, which is missing from VBScript, is one that converts a string to “lower caps.” In other words, a function that converts all the characters in the string to lowercase and then converts the first character of each word to uppercase. Now that you’ve seen all the string manipulation functions, you can write a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LowerCaps() function as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Function LowerCaps(str As String) As String position = InStr(str, Ò Ò) Ô Locate first space &lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;While position Ô while there are spaces in the string&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;newWord = Left$(str, position) Ô extract word Ô and convert its first character to upper case&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;newStr = newStr &amp;amp; UCase$(Left$(newWord, 1)) &amp;amp; Mid$(newWord, 2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;str = Right$(str, Len(str) - position)Ô remove word from string&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;position = InStr(str, Ò Ò)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Wend&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;newWord = str Ô convert the last word in the string&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;newStr = newStr &amp;amp; UCase$(Left$(newWord, 1)) &amp;amp; Mid$(newWord, 2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LowerCaps = newStr Ô return string in Lower Caps&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The LowerCaps() function uses the Instr() function to locate successive instances&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;of the space character in the string. It then isolates the words between spaces,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;changes their first character to uppercase and the rest of the word to lowercase, and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;appends them to the NewStr string. When the function exits, its value is the original&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string formatted in lower caps. If you call the LowerCaps() function with the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;following argument:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CompanyName = ÒABC industrial, inc.Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;UCString = LowerCaps(CompanyName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;UCString &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable’s value will be:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ÒABC Industrial, Inc.Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;InStr([startPos,] string1, string2[, compare]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The InStr() function returnsthe position of &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string2 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;within &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. The first argument, which is optional, determines where in &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the search begins. If the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;startPos &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is omitted, the search begins at the first character of &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. If you execute the following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;str1 = ÒThe quick brown fox jumped over the lazy dogÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;str2 = ÒtheÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos = Instr(str1, str2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;will have the value 33. If you search for the string “he” by setting:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;str2 = ÒheÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable’s value will be 2. If the search begins at the third character in the string, the first instance of the string “he” after the third character will be located:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos = Instr(3, str1, str2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This time the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable will be 34.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The search is by default case-sensitive. To locate “the”, “The”, or “THE” in the string, specify the last optional argument whose value is 0 (default) for a casesensitive search and 1 for a case-insensitive search. The following statement locates the first occurrence of “the” in the string, regardless of case:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;str1 = ÒThe quick brown fox jumped over the lazy dogÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;str2 = ÒtheÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos = Instr(1, str1, str2, 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The value of &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;will be 1. If you set the last argument to 0, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pos &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable becomes 33. If you want to use the last optional argument of the Instr() function, you must also specify the first argument. The InStrB() function is used with byte data contained in a string. Instead of returning the character position of the first occurrence of one string within another, InStrB() returns the byte position.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;InStrRev(string1, string2, start, compare) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the position of one string within another (as does the InStr() function), but it starts from the end of the string. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the string being searched, and the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string2 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the string being searched for. The other two arguments are optional. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;start &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the starting position for the search. If it is omitted, the search begins at the last character. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;compare &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument indicates the kind of comparison to be used in locating the substrings, and its values are explained in the Filter entry. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;compare &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is omitted, a binary comparison is performed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;StrComp(string1, string2 [, compare]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function compares two strings and returns a value indicating the result, according to Table A.9.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 9 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values That the StrComp() Function Returns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;-1 &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is less than &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;0 &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string2 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is equal to &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1 &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is greater than &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Null &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and/or &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string2 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is Null&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The last argument of the StrComp() function determines whether the comparison will be case-sensitive. If compare is 0 (or omitted), the comparison is case-sensitive. If it’s 1, the comparison is case-insensitive. The following function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;StrComp(ÒSybexÓ, ÒSYBEXÓ) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns 1 (“Sybex” is greater than “SYBEX”, because the lowercase y character is after the uppercase Y in the ASCII sequence). The following function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;StrComp(ÒSybexÓ, ÒSYBEXÓ, 1) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns 0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Left(string, number), LeftB(string, number) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a number of characters from the beginning of a string. It accepts two arguments: the string and the number of characters to extract. If the string &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;starts with the month name, the following Left() function can extract the month’s abbreviation from the string, as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date1 = ÒDecember 25, 1995Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MonthName = Left(date1, 3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The value of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MonthName &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable is “Dec”.Use the LeftB() function with byte data contained in a string. Instead of specifying the number of characters, the arguments specify numbers of bytes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Right(string, number), RightB(srting, number) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function is similar to the Left function, except that it returns a number of characters from the end of a string. The following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Yr = Right(date1, 4)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;assigns to the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Yr &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable the value “1995”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the RightB() function with byte data contained in a string. Instead of specifying the number of characters, the arguments specify numbers of bytes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Mid(string, start, [length]), MidB(string, start[, length]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Mid() function returns a section of a string of &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;length &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;characters, starting at position &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;start&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. The following function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Mid(Ò09 February, 1957Ó, 4, 8)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;extracts the name of the month from the specified string.If you omit the length argument, the Mid() function returns all the characters from the starting position to the end of the string. If the specified length exceeds the number of characters in the string after the start position, the remaining string from the start location is returned. Use the MidB() function with byte data contained in a string. Instead of specifying the number of characters, the arguments specify numbers of bytes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Len(string), LenB(string) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Len() function returns the length of a string. After the following statements execute:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Name = InputBox(ÒEnter your first NameÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NameLen = Len(Name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NameLen &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;contains the length of the string entered by the user in the Input Box. The Len() function is frequently used as a first test for invalid input, as in the following lines:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If Len(Name) = 0 Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒNAME field canÕt be emptyÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒThank you for registering with usÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;EndIf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the LenB() function with byte data contained in a string. Instead of returning the number of characters in a string, LenB() returns the number of bytes used to represent that string.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LTrim(string), RTrim(string), Trim(string) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;These functions trim the spaces&lt;span style=""&gt;  &lt;/span&gt;in front of, after, and on either side of a string. The are frequently used in validating user input, as in the following.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If EMail &lt;&gt; ÒÓ Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒApplications without an e-mail address wonÕt be processedÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The preceding won’t, however, catch a string that only has spaces. To detect empty strings, use the Trim() function instead:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If Trim(EMail) = ÒÓ Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒInvalid Entry!Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Space(number) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a string consisting of the specified number&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;of spaces. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;number &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the number of spaces you want in the string. This function is useful for formatting output and clearing data in fixed-length strings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;String(number, character) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a string of &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;number &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;characters,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;all of which are &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;character&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. The following function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;String(12, Ò*Ó)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns the string “************”. Use the String() function to create long patterns of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;special symbols.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;StrConv(string, conversion) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a string variable converted&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;as specified by the conversion argument, whose values as shown in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CONSTANT VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbUpperCase 1 Converts the string to uppercase characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbLowerCase 2 Converts the string to lowercase characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbProperCase 3 Converts the first letter of every word in string to uppercase. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbWide* 4* Converts narrow (single-byte) characters in string to wide (double-byte) characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbNarrow* 8* Converts wide (double-byte) characters in string to narrow (single-byte) characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbKatakana* 16* Converts Hiragana characters in string to Katakana characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbHiragana* 32* Converts Katakana characters in string to Hiragana characters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbUnicode 64 Converts the string to Unicode using the default code page of the system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbFromUnicode 128 Converts the string from Unicode to the default code page of the system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;*Applies to &lt;/span&gt;&lt;st1:place&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Far East&lt;/span&gt;&lt;/st1:place&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; locales.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To perform multiple conversions, add the corresponding values. To convert a string to lowercase and to Unicode format, use a statement such as the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;newString = StrConv(txt, vbLowerCase + vbUnicode)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;StrReverse(string) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function reverses the character order of its argument. Its syntax is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;StrReverse(string1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the string whose characters will be reversed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Filter(InputStrings, Value, Include, Compare) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a zero-based array containing part of a string array, based on specified filter criteria.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;InputStrings &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a one-dimensional array of the strings to be searched, and the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Value &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the string to search for. The last two arguments are optional, and they indicate whether the function should contain substrings that include or exclude the specified value. If True, the Filter() function returns the subset of the array that contains &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Value &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;as a substring. If False, the Filter() function returns the subset of the array that does not contain &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Value &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;as a substring. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Compare &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument indicates the kind of string comparison to be used and it can be any of the values in &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Value What It Does&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbBinaryCompare Performs a binary (case sensitive) comparison.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbTextCompare Performs a textual (case insensitive) comparison.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbDatabaseCompare Performs a comparison based on information contained in the database in which the comparison is to be performed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The array returned by the Filter() function contains only enough elements to contain&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the number of matched items. To use the Filter() function, you must declare an&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;array without specifying the number of elements. Let’s say you have declare the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Names array as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Dim Names&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Names = Array(ÒAbeÓ,ÓJohnÓ, ÒJohnÓ, ÒRonÓ,ÓJimmyÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You can find out if the name stored in the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;myName &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is in the Names array&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;by calling the Filter() function as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;b = Filter(a, myName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If the name stored in the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;myName &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;isn’t part of the Names array, b is an&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;array with no elements. The function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;UBbound(b)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;will return -1. If the name stored in the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;myName &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is “Abe”, the upper&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;bound of the array b will be 0, and the element b(0) will be “Abe”. If the value of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;myName &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable is “John”, the upper bound of the Names array will be 1,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and the elements b(0) and b(1) will have the value “John”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You can also create an array that contains all the elements in the original, except&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;for a specific value. The array b created with the statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;b = Filter(a,ÓRonÓ, False)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;will have 4 elements, which are all the elements of the array Names except for “Ron”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Replace(expression, find, replacewith, start, count, compare) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a string in which a specified substring has been replaced with another substring a specified number of times. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;string containing the string to be replaced, on which the Replace function acts. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;find &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the substring to be replaced, and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;replacewith &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the replacement string. The remaining arguments are optional. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;start &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;character position where the search begins. If it is omitted, the search starts at the first character. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;count &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the number of replacements to be performed. If it is omitted, all possible replacements will take place. Finally, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;compare &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument specifies the kind of comparison to be performed. The values of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;compare &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument are described in the Filter entry.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Join(list, delimiter) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a string created by joining a number of substrings contained in an array. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;list &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a one-dimensional array containing substrings to be joined, and the optional &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;delimiter &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a character used to separate the substrings in the returned string. If it is omitted, the space character (“ “) is used. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;delimiter &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is a zero-length string, all items in the list are concatenated with no delimiters.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Split(expression, delimiter, count, compare) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function is the counterpart of the Join() function. It returns a zero-based, one-dimensional array containing a specified number of substrings. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a string that contains the original string that will be broken into substrings, and the optional &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;delimiter &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a character used to delimit the substrings. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;delimiter &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is omitted, the space character (“ “) is assumed to be the delimiter. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;delimiter &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is a zerolength string, a single-element array containing the entire expression string is returned. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;count &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is also optional, and it determines the number of substrings to be returned. If it’s -1, all substrings are returned. The last argument, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;compare&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, is also optional and indicates the kind of comparison to use when evaluating substrings. Its valid values are described in the Filter entry.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Let’s say you have declared a string variable with the following path name:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;path = Òc:\win\desktop\ActiveX\Examples\VBSCRIPTÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Split&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:City&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;() function can extract the path’s components and assign them to the parts array, with this statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;parts = &lt;/span&gt;&lt;st1:city&gt;&lt;st1:place&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Split&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:City&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;(Òc:\win\desktop\ActiveX\Examples\VBSCRIPTÓ, Ò\Ó) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To display the parts of the path, set up a loop such as the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For i = 0 To ubound(parts)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox parts(i)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Formatting Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Up through Visual Basic 5, there was only one function for formatting numbers and dates, the Format() function. Visual Basic 6 features a number of new formatting functions, which are specific to the data type they apply to (numbers, dollar&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;amounts, and dates).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Format(expression[, format[, firstdayofweek[, firstweekofyear]]])&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a string containing an expression formatted according to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;instructions contained in a format expression. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable is the number, string, or date to be converted, and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;format &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is a string that tells Visual Basic how to format the value. The string “hh:mm.ss”, for example, displays the expression as a time string. The Format() function is used to prepare numbers, dates, and strings for display. If you attempt to display the following expression:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print atn(1)/4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the number 3.14159265358979 is displayed. If this value must appear in a text control, chances are good that it will overflow the available space. You can control the number of decimal digits to be displayed with the following call to the Format() function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print Format(atn(1)*4, Ò##.####Ó)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This statement displays the result 3.1416. If you are doing financial calculations and the result turns out to be 13,454.332345201, it would best to display it as $13,454.33, with a statement such as the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;amount = 13454.332345201&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print Format(amount, Ò$###,###.##Ó)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;These statements display the value $13,454.33, which is a proper dollar amount. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstdayofweek &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument determines which is the week’s first day and can have one of the values in Table A.12.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 2 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firsdayofweek &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CONSTANT VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbUseSystem 0 Use NLS API setting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbSunday 1 Sunday (default)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbMonday 2 Monday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbTuesday 3 Tuesday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbWednesday 4 Wednesday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbThursday 5 Thursday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbFriday 6 Friday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbSaturday 7 Saturday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Similarly, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstweekofyear &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;determines which is the first week of the year, and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;it can have one of the values in Table A.13.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 3 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstweekofyear &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CONSTANT VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbUseSystem 0 Uses NLS API setting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbFirstJan1 1 Starts with the week of January 1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbFirstFourDays 2 Starts with the week that has at least four days in the year.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbFirstFullWeek 3 Starts with the first full week of the year.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstdayof &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;week and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstweekofyear &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arguments are used only in formatting dates. There are many formatting strings for all three types of variables: numeric, string, and date and time. Table A.14, Table A.15, and Table A.16 show them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 4 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;User-Defined Time and Date Formatting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CHARACTER DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time separator. In some locales, other characters may be used to represent the time separator. The time separator separates hours, minutes, and seconds when time values are formatted. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;/ &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Date separator. In some locales, other characters may be used to represent the date separator. The date separator separates the day, month, and year when date values are formatted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;c &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays date as ddddd and the time as ttttt.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;d &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays day as a number (1–31).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;dd &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays day as a number with a leading zero (01–31).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ddd &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays day as an abbreviation (Sun–Sat).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;dddd &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays day as a full name (Sunday–Saturday).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ddddd &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays complete date (including day, month, and year), formatted according to the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;system’s short date format setting. The default short date format is m/d/y. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;dddddd &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays complete date, formatted according to the long date setting recognized by he&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;system. The default long date format is mmmm dd, yyyy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;w &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays day of the week as a number (1 for Sunday through 7 for Saturday). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ww &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays week of the year as a number (1–54).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 4 C O N T I N U E D : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;User-Defined Time and Date Formatting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CHARACTER DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;m &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays month as a number (1–12). If m immediately follows h or hh, the minute rather than the month is displayed. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;mm &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays month as a number with a leading zero (01–12). If m immediately follows h or hh, the minute rather than the month is displayed. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;mmm &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays month as an abbreviation (Jan–Dec). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;mmmm &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays month as a full month name (January–December). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;q &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays quarter of the year as a number (1–4). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;y &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays day of the year as a number (1–366). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;yy &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays year as a 2-digit number (00–99). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;yyyy &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays year as a 4-digit number (100–9999).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;h &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays hours as a number (0–23). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;hh &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays hours with leading zeros (00–23). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;n &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays minutes without leading zeros (0–59). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;nn &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays minutes with leading zeros (00–59).&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;s &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays seconds without leading zeros (0–59). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ss &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays seconds with leading zeros (00–59). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ttttt &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays complete time (including hour, minute, and second), formatted using the time separator defined by the time format of the system. The default time format is h:mm:ss. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;AM/PM &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Uses the 12-hour format and displays the indication AM/PM. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;am/pm &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Uses the 12-hour format and displays the indication am/pm. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;A/P &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Uses the 12-hour format and displays the indication A/P &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;a/p &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Uses the 12-hour format and displays the indication a/p. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;AMPM &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Uses the 12-hour format and displays the AM/PM string literal as defined by the system. Use the Regional Settings program in the Control Panel to set this literal for your system. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 5 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;User-Defined Number Formatting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CHARACTER WHAT IT IS OR DOES DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;None &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays the number with no formatting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;0 &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Digit placeholder Displays a digit or a zero. If the expression has a digit in the position where the 0 appears in the format string, display it; otherwise, display a zero in that position. If the number has fewer digits than there are zeros in the format expression, leading or trailing zeros are displayed. If the number has more digits to the right of the decimal separator than there are zeros to the right of the decimal separator in the format expression, round the number to as many decimal places as there are zeros. If the number has more digits to the left of the decimal separator than there are zeros to the left of the decimal separator in the format expression, display the extra digits without modification. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;# &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Digit placeholder Displays a digit or nothing. If the expression has a digit in the position where the # appears in the format string, display it; otherwise, display nothing in that position. This symbol works like the 0 digit placeholder, except that leading and trailing zeros aren’t displayed if the number has the same or fewer digits than there are # characters on either side of the decimal separator in the format expression. Decimal placeholder The decimal placeholder determines how many digits are displayed to the left and right of the decimal separator. If the format expression contains only number signs to the left of this symbol, numbers smaller than 1 begin with a decimal separator. To display a leading zero displayed with fractional numbers, use 0 as the first digit placeholder to the left of the decimal separator. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;% &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Percentage placeholder The expression is multiplied by 100. The percent character (%) is inserted in the position where it appears in the format string. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Thousand separator Separates thousands from hundreds within a number greater than 1000. Two adjacent thousand separators or athousand separator immediately to the left of the decimal separator (whether or not a decimal is specified) means “scale the number by dividing it by 1000, rounding as&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;needed.” For example, you can use the format string “##0,,” to represent 100 million as 100. Numbers smaller than 1 million are displayed as 0. Two adjacent thousand separators in any position other than immediately to the left of the decimal separator are treated simply as specifying the use of a thousand separator. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time separator Separates hours, minutes, and seconds when time values are formatted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 5 C O N T I N U E D : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;User-Defined Number Formatting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CHARACTER WHAT IT IS OR DOES DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;/ &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Date separator Separates the day, month, and year when date values are formatted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;E+, e-, e+ &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Scientific format If the format expression contains at least one digit placeholder (0 or #) to the right of E-, E+, e-, or e+, the number is displayed in scientific format, and E or e is inserted between the number and its exponent. The number of digit placeholders to the right determines the number of digits in the exponent. Use E- or e- to place a minus sign next to negative exponents. Use E+ or e+ to place a minus sign next to negative exponents and a plus sign next to positive exponents.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;+ $ (space ) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Display a literal character To display a character other than one of those listed, precede&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;it with a backslash (\) or enclose it in double quotation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;marks (“ “).&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;\ &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays the next character To display a character that has special meaning as a literal in the format string character, precede it with a backslash (\). The backslash itself isn’t displayed. Using a backslash is the same as enclosing the next character in double quotation marks. To display a backslash, use two backslashes (\\).Examples of characters that can’t be displayed as literal characters are the date-formatting and time-formatting characters (a, c, d, h, m, n, p, q, s, t, w, y, / and :), the numeric-formatting characters (#, 0, %, E, e, comma, and period), and the string-formatting characters (@, &amp;amp;, &lt;, &gt;, and !). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;“ABC” &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Displays the string inside To include a string in format from within code, you must the double quotation use Chr(34) to enclose the text (34 is the character code marks (“ “) for a quotation mark (“)).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 6 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;User-Defined String Formatting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CHARACTER WHAT IT IS OR DOES DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;@ &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Character placeholder Displays a character or a space. If the string has a character in the position where the at symbol (@) appears in the format string, it is displayed. Otherwise, a space in that position is displayed. Placeholders are filled from right to left unless there is an exclamation point character (!) in the format string. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&amp;amp; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Character placeholder If the string has a character in the position where the ampersand (&amp;amp;) appears, it is displayed. Otherwise, nothing is displayed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Placeholders are filled from right to left unless there is an exclamation point character (!) in the format string.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 6 C O N T I N U E D : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;User-Defined String Formatting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CHARACTER WHAT IT IS OR DOES DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Force lowercase All characters are first converted to lowercase. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Force uppercase All characters are first converted to uppercase.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;! &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Scans placeholders from The default order is to use placeholders from right to left. left to right&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FormatCurrency(Expression, NumDigitsAfterDecimal, IncludeLeading-Digit, UseParensForNegativeNumbers, GroupDigits) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a numeric expression formatted as a currency value (dollar amount) using the currency symbol defined in Control Panel. All arguments are optional,except for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument, which is the number to be formatted as currency.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NumDigitsAfterDecimal &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is a value indicating how many digits will appear to the right of the decimal point. The default value is -1, which indicates that the computer’s regional settings must be used. &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;IncludeLeadingDigit &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is a tristate constant that indicates whether a leading zero is displayed for fractional values. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;UseParensForNegativeNumbers &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is also a tristate constant that indicates whether to place negative values within parentheses. The last argument, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Group- Digits&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, is another tristate constant that indicates whether numbers are grouped using the group delimiter specified in the computer’s regional settings. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NOTE &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;A tristate variable is one that has three possible values: True, False, and Use-Default. The last value uses the computer’s regional settings. When one or more optional arguments are omitted, values for omitted arguments are provided by the computer’s regional settings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FormatDateTime(Date, NamedFormat) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function formats a date or time value. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Date &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a date value that will be formatted, and the optional argument &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NamedFormat &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;indicates the date/time format to be used. It can have the values shown in Table A.17.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 7 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NamedFormat &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Value What It Does&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbGeneralDate Displays a date and/or time. If a date part is present, it is displayed as a short date. If a time part is present, it is displayed as a long time. If both parts are present, both parts are displayed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 7 C O N T I N U E D : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NamedFormat &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Value What It Does&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbLongDate Displays a date using the long date format, as specified in the client computer’s regional settings VbShortDate Displays a date using the short date format, as specified in the client computer’s regional settings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbLongTime Displays a time using the time format specified in the client computer’s regional settings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VbShortTime Displays a time using the 24-hour format&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FormatNumber(Expression, NumDigitsAfterDecimal, IncludeLeading-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Digit, UseParensForNegativeNumbers, GroupDigits) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a numeric value formatted as a number. The arguments of the Format- Number() function are identical to the arguments of the FormatCurrency() function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FormatPercent(Expression, NumDigitsAfterDecimal, IncludeLeading-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Digit, UseParensForNegativeNumbers, GroupDigits) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an expression formatted as a percentage (multiplied by 100) with a trailing % character. Its syntax and arguments are identical to the FormatCurrency() and FormatNumber() functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Math Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The following functions perform math operations. Their arguments are doubleprecision values and so are their results.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Abs(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the absolute value of its argument.Both Abs(1.01) and Abs(-1.01) return the value 1.01.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Atn(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the arctangent of an angle. The value returned is in radians. To convert it to degrees, multiply by 180/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;¹&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, where &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;¹ &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is 3.14159…. To calculate &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;¹ &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;with double precision, use the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Atn(1)*4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Cos(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the cosine of an angle. The value of angle must be expressed in radians. To convert it to degrees, multiply by 180/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;¹&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, where &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;¹ &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is 3.14159…. To calculate &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;¹ &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;with double precision, use the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Atn(1)*4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Exp(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the base of the natural logarithms to a power. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable is the power, and its value can be a noninteger, positive or negative value. The Exp() function complements the operation of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Log() function and is also called &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;antilogarithm&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Int(expression), Fix(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Both these functions accept a numeric argument and return an integer value. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is positive, both functions behave the same. If it’s negative, the Int() function returns the first negative integer less than or equal to &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, and Fix returns the first negative integer greater than or equal to &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. For example, Int(-1.1) returns -2, and Fix(-1.1) returns -1. The functions Int(1.8) and Fix(1.8) both return 1. If you want to get rid of the decimal part of a number and round it as well, use the following expression: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Int(value + 0.5) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;value &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the number to be rounded. The following function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Int(100.1 + 0.5) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns 100, and the function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Int(100.8 + 0.5) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns 101. This technique works with negative numbers as well. The following function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Int(-100.1 + 0.5)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns -100, and the function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Int(-100.8 + 0.5) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns -101.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Round(expression[, numdecimalplaces]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a numeric expression rounded to a specified number of decimal places. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;numdecimalplaces &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is optional and indicates how many places to the right of the decimal are included in the rounding. If it is omitted, an integer value is returned. The expression Round (3.49) returns 3, and the expression Round(3.51) returns 4. Use this new function to avoid statements such as Int(value + 0.5), which was used with previous versions of Visual Basic to round &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;value &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;to an integer. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Log(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Log() function returns the natural logarithm of a number. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable must be a positive number. The following expression:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Log(Exp(N))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns N, and so will this expression:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Exp(Log(N))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If you combine the logarithm with the antilogarithm, you end up with the same number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The natural logarithm is the logarithm to the base e, which is approximately 2.718282. The precise value of e is given by the function Exp(1). To calculate logarithms to other bases, divide the natural logarithm of the number by the natural&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;logarithm of the base. The following statement calculates the logarithm of a number in base 10:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Log10 = Log(number) / Log(10)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Hex(expression), Oct(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;These two functions accept a decimal numeric value as an argument and return the octal and hexadecimal representation of the number in a string. The function Hex(47) returns the value “2F”, and the function Oct(47) returns the value “57”. To specify a hexadecimal number, prefix it with &amp;amp;H. The equivalent notation for octal numbers is &amp;amp;O. Given the following definitions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Dvalue = 199: Ovalue = &amp;amp;O77&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the function Oct(Dvalue) returns the string “307”, and the function Hex(Ovalue)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns “3F”. To display the decimal value of 3F, use a statement such as the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox (ÒThe number 3F in decimal is Ò &amp;amp; &amp;amp;H3F) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The actual value that will be displayed is 63.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Rnd([expression]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a pseudo-random number in the range&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;0 to 1. The optional argument is called &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;seed &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and is used as a starting point in the calculations that generate the random number. If the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;seed &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is negative, the Rnd() function always returns the same number. As strange as this behavior may sound, you may need this feature to create repeatable random numbers to test your code. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;seed &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is positive (or omitted), the Rnd() function returns the next random number in the sequence. Finally, if &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;seed &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is zero, the Rnd() function returns the most recently generated random number. In most cases, you don’t need a random number between 0 and 1, but between two other integer values. Aplaying card’s value is an integer in the range 1 through 13. To simulate the throw of a dice, you need a number in the range 1 through 6. To generate a random number in the range &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;lower &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;to &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;upper&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, in which both bounds are integer numbers, use the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;randomNumber = Int((upper - lower + 1)*rnd() + lower);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The following statement displays a random number in the range 1 to 49.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Int(Rnd * 49 + 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If you repeat this statement six times, you will get the Lotto’s six lucky numbers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NOTE &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The sequence of random numbers produced by Visual Basic is always the same! Let’s say you have an application that displays three random numbers. If you stop and rerun the application, the same three numbers will be displayed. This is not a bug. It’s a feature of Visual Basic that allows you to debug applications that use random numbers (if the sequence were different, you wouldn’t be able to re-create the problem). To change this default behavior, call the Randomize statement at the beginning of your code. This statement will initialize the random number generator based on the value of the computer’s Timer, and the sequences of random numbers will be different every time you run the application.&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Sgn(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an integer indicating the sign of its argument: 1 if the argument is greater than zero, 0 if the argument is 0, and –1 if the argument is less than zero. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Sin(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the sine of an angle, specified in radians.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;See the &lt;/span&gt;&lt;st1:place&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Cos&lt;/span&gt;&lt;/st1:place&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;() entry. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Sqr(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the square root of a positive number. If the argument number is negative, the Sqr() function causes a runtime error, because by definition the square root of a negative number is undefined. If your program uses the Sqr() function, you must include some error trapping code such as the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If var&gt;=0 Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;sqVar = Sqr(var)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒThe result canÕt be calculatedÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End IF&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Tan(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the tangent of an angle, which must be expressed in radians.&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Val(string) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the numeric value of a string made up of digits. The Val() function starts reading the string from the left and stops when it reaches a character that isn’t part of a number. If the value of the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;a &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;a = Ò18:6.05Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Val(a)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns 18.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Date and Time Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The date and time functions report (or set) the system’s date and time. Visual Basic understands many formats for the date. Besides the common formats such as &lt;/span&gt;&lt;st1:date year="1999" day="2" month="9"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2/9/1999&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; and &lt;/span&gt;&lt;st1:date year="1995" day="25" month="5"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;5/25/1995&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, it recognizes month names. Dates such as “February 1999” and “&lt;/span&gt;&lt;st1:date year="1996" day="25" month="5"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;May 25, 1996&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;” are valid date expressions. See the Format(string) entry for more on date and time formats. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Timer() &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a single number representing the number of seconds elapsed since &lt;/span&gt;&lt;st1:time minute="0" hour="0"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;midnight&lt;/span&gt;&lt;/st1:time&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. It is frequently used for timing purposes, as long as&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the desired accuracy is not less than a second. To time an operation that takes a while to complete, use a structure such as the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;T1 = Timer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;{lengthy calculations}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.print Int(Timer - T1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The last statement displays the integer part of the difference, which is the number of seconds elapsed since the calculations started.&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Date() &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the current date in month/day/year format, unless you specified the &lt;/span&gt;&lt;st1:country-region&gt;&lt;st1:place&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;UK&lt;/span&gt;&lt;/st1:place&gt;&lt;/st1:country-region&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; date format (day/month/year). The following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒThe system date is Ò &amp;amp; Date() &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;display a date such as &lt;/span&gt;&lt;st1:date year="1998" day="22" month="9"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;9/22/1998&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; in a message box. To set the system date, use the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date = Ò01/01/97Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time() &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the system’s time in AM/PM format. The following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒThe system time is Ò &amp;amp; Time()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;displays a time such as &lt;/span&gt;&lt;st1:time minute="13" hour="17"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;5:13:05 PM&lt;/span&gt;&lt;/st1:time&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; in a message box. To set the system time, use the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time = Ò13:00.00Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Now() &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns both the system date and time, in the same format as they are reported by the Date() and Time() functions. The following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.print Now()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;displays a date/time combination such as &lt;/span&gt;&lt;st1:date year="1998" day="13" month="9"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;9/13/1998&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; &lt;/span&gt;&lt;st1:time minute="23" hour="21"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;09:23:10 PM&lt;/span&gt;&lt;/st1:time&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; in a message box. There’s only one space between the date and the time. The Now() function is equivalent to the following pair of functions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Date() &amp;amp; Ò Ò &amp;amp; Time()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Day(date) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the day number of the date specified by the argument. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument must be a valid date (such as the value of the Date() or the Now() function). If the following function were called on &lt;/span&gt;&lt;st1:date year="1995" day="12" month="1"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;12/01/95&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, it would have returned 1.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Day(Date()) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Day(Now()) function returns the same result. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Weekday(date, [firstdayofweek]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an integer in the range 1 through 7, representing the day of the week (1 for Sunday, 2 for Monday, and so on). The first argument, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, can be any valid date expression. The second argument, which is optional, specifies the first day of the week. Set it to 1 to start counting from Sunday (the default), or set it to 2 to start counting from Monday. The value 3 corresponds to Tuesday, the value 4 corresponds to Wednesday, and so on. The following code segment displays the name of the day: &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DayNames = Array(ÒSundayÓ, ÒMondayÓ, ÒTuesdayÓ, ÒWednesdayÓ, Òthursday Ó, ÒFridayÓ, ÒSaturdayÓ) dayname = ÒToday it is Ò &amp;amp; DayNames(Weekday(Now)-1) Debug.Print dayname &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Notice that the code subtracts 1 from the weekday to account for the array being zero based. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Month(date) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an integer in the range 1 through 12, representing the number of the month of the specified date. Month(Date) returns the current month number. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MonthName(month[, abbreviate]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the name of the month specified by the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;month &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument (a numeric value, which is 1 for January, 2 for February, and so on). The optional &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;abbreviate &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a Boolean value that indicates if the month name is to be abbreviated. By default, month names&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are not abbreviated. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Year(date) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an integer representing the year of the date passed to it as an argument. The following function: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Year(Now())&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns the current year. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Hour(time) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an integer in the range 0 through 24 that represents the hour of the specified time. The following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Now&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Hour(Now)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;produce something such as:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;st1:date year="1998" day="27" month="2"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2/27/98&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; 11:32:43 AM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Minute(time) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an integer in the range 0 through 60 that represents the minute of the specified time. The following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Now&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Minute(Now)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;produce something such as:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;st1:date year="1998" day="27" month="2"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2/27/98&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; 11:57:13 AM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;57&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Second(time) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns an integer in the range 0 through 60 that represents the seconds of the specified time. The following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Now&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Second(Now)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;produce something such as:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;st1:date year="1998" day="27" month="2"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2/27/98&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; 11:57:03 AM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DateSerial(year, month, day) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function accepts three numeric arguments that correspond to a year, a month, and a day value and returns the corresponding date. The following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox DateSerial(1999, 10, 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;displays the string “&lt;/span&gt;&lt;st1:date year="1999" day="1" month="10"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;10/1/99&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;” in a message box. Although hardly a useful operation, the DateSerial function can handle arithmetic operations with dates. For example, you can find out the date of the 90&lt;sup&gt;th&lt;/sup&gt; day of the year by calling DateSerial() with the following arguments:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DateSerial(1996, 1, 90)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;(&lt;/span&gt;&lt;st1:date year="1996" day="30" month="3"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;30/3/96&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, if you are curious). To find out the date 1000 days from now, call the DateSerial function as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DateSerial(Year(Date), Month(Date), Day(Date)+1000)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You can also add (or subtract) a number of months to the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;month &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument and a number of years to the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;year &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument.&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DateValue(date) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a variant of type Date. This function is handy if you are doing financial calculations based on the number of days between two dates. The difference in the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox DateValue(Ò12/25/1996Ó) - DateValue(Ò12/25/1993Ó)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the number of days between the two dates, which happens to be 1096 days. You can verify this result by adding 1096 days to the earlier date:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox DateValue(Ò12/25/1993Ó) + 1096&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;or subtracting 1096 days from the later date:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox DateValue(Ò12/25/1996Ó) - 1096&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TimeSerial(hours, minutes, seconds) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a time, as specified by the three arguments. The following function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TimeSerial(4, 10, 55)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returns:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;st1:time minute="10" hour="4"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;4:10:55  AM&lt;/span&gt;&lt;/st1:time&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The TimeSerial() function is frequently used to calculate relative times. The following call to TimeSerial() returns the time 2 hours, 15 minutes, and 32 seconds before &lt;/span&gt;&lt;st1:time minute="13" hour="16"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;4:13:40 PM&lt;/span&gt;&lt;/st1:time&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;: &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TimeSerial(16 - 2, 13 - 15, 40 - 32)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;which is &lt;/span&gt;&lt;st1:time minute="2" hour="14"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2:02:08 PM.&lt;/span&gt;&lt;/st1:time&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TimeValue(time) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a variant of type Time. Like the Date- Value() function, it can be used in operations that involve time. If the variables &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time2 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are defined as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time1 = Ò04.10.55Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Time2 = Ò18.50.00Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;you can find out the hours, minutes, and seconds between the two times with the following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Diff = TimeValue(Time2) - TimeValue(Time1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;HourDiff = Hour(Diff)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MinDiff = Minute(Diff)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SecDiff = Second(Diff)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In this example, the values returned will be:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;HourDiff=14&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MinDiff=25&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SecDiff=05&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DateAdd(interval, number, date) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a date that corresponds to a date plus some interval. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;interval &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable is a time unit (days, hours, weeks, and so on), &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;number &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the number of intervals to be added to the initial date, and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the initial date. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;number &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is positive, the date returned by DateAdd is in the future. If it’s negative, the date returned is in the past. The interval argument can take one of the values in Table A.18.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 8 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;interval &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;yyyy Year&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;q Quarter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;m Month&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;y Day of year&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;d Day&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;w Weekday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ww Week&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;h Hour&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;n Minute&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;s Second&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To find out the date one month after &lt;/span&gt;&lt;st1:date year="1996" day="31" month="1"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;January  31, 1996&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, use the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DateAdd(ÒmÓ, 1, Ò31-Jan-96Ó)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The result is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;st1:date year="1996" day="29" month="2"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2/29/96&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and not an invalid date such as February 31. DateAdd() also takes into consideration leap years. The following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DateAdd(ÒmÓ, 1, Ò31-Jan-96Ó) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;displays the date &lt;/span&gt;&lt;st1:date year="1996" day="29" month="2"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2/29/96&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt; in the Immediate window. The DateAdd() function is similar to the DateSerial() function, but it takes into consideration the actual duration of a month. For DateSerial(), each month has 30 days. The following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;day1=#1/31/1996#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DateSerial(year(day1), month(day1)+1, day(day1))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;result in:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;st1:date year="1996" day="3" month="2"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3/2/96&lt;/span&gt;&lt;/st1:date&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;which is a date in March, not February.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function is the counterpart of the DateAdd() function and returns the number of intervals between two dates. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;interval &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the interval of time you use to calculate the difference between the two dates (see Table A.18, earlier&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;in this appendix, for valid values). The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date2 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arguments are dates to be used in the calculation, and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstdayofweek &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstweekofyear &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are optional arguments that specify the first day of the week and the first week of the year. Table A.19 shows the valid values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstdayofweek &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument, and Table A.20 shows the valid values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstweekofyear &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 1 9 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstdayofweek &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CONSTANT VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbUseSystem 0 Use the NLS API setting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbSunday 1 Sunday (default)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbMonday 2 Monday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbTuesday 3 Tuesday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbWednesday 4 Wednesday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbThursday 5 Thursday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbFriday 6 Friday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbSaturday 7 Saturday&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 2 0 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstweekofyear &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;CONSTANT VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbUseSystem 0 Use the NLS API setting.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbFirstJan1 1 Start with the week in which January 1 occurs (default). vbFirstFourDays 2 Start with the first week that has at least four days in the new year. vbFirstFullWeek 3 Start with the first full week of the year. &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You can use the DateDiff() function to find how many days, weeks, and even seconds are between two dates. The following statement displays the number of days and minutes until the turn of the century (or the time elapsed after the turn of century, depending on when you execute it):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;century=#01/01/2000 00:00.00#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DateDiff(ÒnÓ, now(), century)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If you place this code in a Timer’s Timer event, you can update a text control every second or every minute with the countdown to the end of the century. If you were to use the DateValue() function, as in the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print minute(DateValue(Ò01/01/2000 00:00.00Ó) - DateValue(now()))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the result is a number in the range 0 through 60. You would have to take into consideration the difference of years, months, days, hours, and minutes to calculate the correct value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DatePart(interval, date[,firstdayofweek[, firstweekofyear]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the specified part of a given date. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;interval &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the desired format in which the part of the date will be returned (see Table A.18, earlier in this appendix, for its values), and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;date &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the part of the date you are seeking. The optional arguments &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstdayofweek &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;firstdayofmonth &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are the same as for the DateDiff() function. The following Print statements produce the result shown below them:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;day1=#03/23/1996 15:03.30#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒyyyyÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1996&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒqÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒmÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒdÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;23&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒwÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒwwÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒhÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒnÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print DatePart(ÒsÓ, day1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;30&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Financial Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The following functions can be used to calculate the parameters of a loan or an investment. I will explain only the functions that return the basic parameters of a loan (such as the monthly payment or the loan’s duration). The more advanced financial functions are described in the Visual Basic online documentation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;IPmt(rate, per, nper, pv[, fv[, type]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the interest payment for a given period of an annuity based on periodic, fixed payments and a fixed interest rate. The result is a Double value. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;rate &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a Double value specifying the interest rate for the payment period. For example, if the loan’s annual percentage rate (APR) is 10 percent, paid in monthly installments, the rate per period is 0.1/12, or 0.0083. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;per &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a Double value specifying the current payment period; &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;per &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is a number in the range 1 through &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;nper&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;nper &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a Double value specifying the total number of payments. For example, if you make monthly payments on a five-year loan, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;nper &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is 5 * 12 (or 60).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pv &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a Double value specifying the principal or present value. The loan amount is the present value to the lender of the monthly payments. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;fv &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a Variant specifying the future value or cash balance after the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;final payment. The future value of a loan is $0 because that’s its value after the final payment. If you want to accumulate $10,000 in your savings account over 5 years, however, the future value is $10,000. If the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;fv &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is omitted, 0 is assumed. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;type &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a Variant specifying when payments are due. Use 0 if payments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are due at the end of the payment period; use 1 if payments are due at the beginning of the period. If the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;type &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is omitted, 0 is assumed. Suppose you borrow $30,000 at an annual percentage rate of 11.5%, to be paid off in 3 years with payments at the end of each month. Here’s how you can calculate the total interest, as well as the monthly interest:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PVal = 30000&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FVal = 0&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;APR = 0.115 / 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MPayments = 3 * 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For Period = 1 To Mpayments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;IPayment = IPmt(APR, Period, MPayments, -PVal, FVal, 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print IPayment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TotInt = TotInt + IPayment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next Period&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print ÒTotal interest paid: Ò &amp;amp; TotInt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The interest portion of the first payment is $287.11, and the interest portion of the last payment is less than $10. The total interest is $5,276,02.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PPmt(rate, per, nper, pv[, fv[, type]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function is similar to the IPmt() function except that it returns the principal payment for a given period of a loan based on periodic, fixed payments and a fixed interest rate. For a description of the function’s arguments, see the IPmt entry.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The code for calculating the principal payment of the previous example is nearly the same as that for calculating the interest:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PVal = 30000&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FVal = 0&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;APR = 0.115 / 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MPayments = 3 * 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For Period = 1 To Mpayments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PPayment = PPmt(APR, Period, MPayments, -PVal, FVal, 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print PPayment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TotPrincipal = TotPrincipal + PPayment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next Period&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print ÒTotal principal paid: Ò &amp;amp; TotPrincipal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In this example, the payments increase with time (that’s how the total payment remains fixed). The total amount will be equal to the loan’s amount, of course, and the fixed payment is the sum of the interest payment (as returned by the IPmt()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;function) plus the principal payment (as returned by the PPmt() function). &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pmt(rate, nper, pv[, fv[, type]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function is a combination of the IPmt()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and PPmt() functions. It returns the payment (including both principal and interest) for a loan based on periodic, fixed payments and a fixed interest rate. For a description of the function’s arguments, see the IPmt entry. Notice that the Pmt() function doesn’t require the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;per &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument because all payments are equal. The code for calculating the monthly payment is similar to the code examples in the IPmt() and PPmt() entries:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PVal = 30000&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FVal = 0&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;APR = 0.115 / 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MPayments = 3 * 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For Period = 1 To Mpayments&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MPayment = Pmt(APR, Period, MPayments, -PVal, FVal, 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print MPayment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TotAmount = TotAmount + MPayment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next Period&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print ÒTotal amount paid: Ò &amp;amp; TotAmount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;’FV(rate, nper, pmt[, pv[, type]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the future value of a loan based on periodic, fixed payments and a fixed interest rate. The arguments of the FV() function are explained in the IPmt() entry, and the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;pmt &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the payment made in each period. Suppose you want to calculate the future value of an investment with an interest&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;rate of 6.25%, 48 monthly payments of $180, and a present value of $12,000. Use the FV() function with the following arguments:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Payment = 180&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;APR = 6.25 / 100&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TotPmts = 48&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PVal = 12000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FVal = FV(APR / 12, TotPmts, -Payment, -PVal, PayType)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsgBox ÒAfter Ò &amp;amp; TotPmts &amp;amp; Ò your savings will be worth $Ó&amp;amp; FVal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The actual result is close to $25,000.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NPer(rate, pmt, pv[, fv[, type]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the number of periods for a loan based on periodic, fixed payments and a fixed interest rate. For a description of the function’s arguments, see the IPmt entry. Suppose you borrow $25,000 at 11.5%, and you can afford to pay $450 per month. To figure out what this means to your financial state in the future, you would like to know how may years it will take you to pay off the loan. Here’s how you can use&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the Nper() function to do so:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FVal = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PVal = 25000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;APR = 0.115 / 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Payment = 450&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PayType = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TotPmts = NPer(APR, -Payment, PVal, FVal, PayType)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If Int(TotPmts) &lt;&gt; TotPmts Then TotPmts = Int(TotPmts) + 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print ÒThe loanÕs duration will be: Ò &amp;amp; TotPmts &amp;amp; Ò monthsÓ &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The actual duration of this loan is 80 months, which corresponds to nearly 6.5 years. If the payment is increased from $450 to $500, the loan’s duration will drop to 69 months, and a monthly payment of $550 will bring the loan’s duration down to 60 months. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Rate(nper, pmt, pv[, fv[, type[, guess]]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You use this function to figure out the interest rate per payment period for a loan. Its arguments are the same as with the previous financial functions, except for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;guess &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument, which is the estimated interested rate. If you omit the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;guess &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument, the value 0.1 (10%) is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;assumed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Suppose you want to borrow $10,000 and pay it off in 36 months with a monthly payment of $350 or less. Here’s how you can use the Rate() function to calculate the interest rate:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FVal = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PVal = 10000&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Payment = 350&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Payments = 36&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PayType = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;guess = 0.1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;IRate = Rate(Payments, -Payment, PVal, FVal, PayType, guess) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print ÒThe desired interest rate is: Ò &amp;amp; Irate * 12 * 100 &amp;amp; Ò%Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The interest rate is approximately 15.7%.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Table A.21 lists and describes the remaining financial functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 2 1 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Additional Financial Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Function What It Returns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PV The present value of an investment NPV A Double specifying the net present value of an investment based on a series of periodic cash flows and a discount rate IRR The internal rate of return for an investment MIRR A Double specifying the modified internal rate of return for a series of periodic cash flows DDB A Double specifying the depreciation of an asset for a specific time period using the doubledeclining balance method or some other method you specify SYD A Double specifying the sum-of-years’ digits depreciation of an asset for a specified period SLN A Double specifying the straight-line depreciation of an asset for a single period&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Color Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The following two functions specify color values that can be used with Visual Basic’s drawing methods or with the properties that set the color of various controls (ForeColor, BackColor). The QBColor() function is the simpler one and is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;commonly used with business applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;QBColor(color) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a Long Integer representing the RGB color code corresponding to the specified color number. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;color &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a number in the range 0 through 15. Each value returns a different color, as shown in Table A.22.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 2 2 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;color &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;NUMBER COLOR&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;0 Black&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1 Blue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2 Green&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3 Cyan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;4 Red&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;5 Magenta&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;6 Yellow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;7 White&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;8 Gray&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;9 Light Blue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;10 Light Green&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;11 Light Cyan&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;12 Light Red&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;13 Light Magenta&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;14 Light Yellow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;15 Bright White&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the QBColor() function to specify colors if you want to address the needs of users with the least-capable graphics adapter (one that can’t display more than the basic 16 colors). Also use it for business applications that don’t require many colors.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;RGB(red, green, blue) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a Long Integer representing a color value. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;red&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;green, &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;blue &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arguments are integer values in the range 0 through 255, representing the values of the three basic colors. Table A.23 lists some of the most common colors and their corres ponding red, green, and blue components. The colors correspond to the eight corners of the RGB color cube.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 2 3 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Common Colors and Their Corresponding RGB Components&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;COLOR RED GREEN BLUE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Black 0 0 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Blue 0 0 255&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Green 0 255 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Cyan 0 255 255&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Red 255 0 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Magenta 255 0 255&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Yellow 255 255 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;White 255 255 255&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For a detailed discussion on how to specify colors with the help of the RGB cube, see Chapter 6. The following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.BackColor = RGB(255, 0, 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;assigns a pure red color to the background of the Text1 control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Registry Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In Chapter 13, I discussed the API functions for manipulating the Registry. Because the operating system and all other operations rely heavily on the Registry, you should exercise extreme care when using the Registry. Visual Basic provides a few special functions for storing values in the Registry. These functions are safer than the API functions, and they access only a single branch of the Reg istry (in other words, you can’t ruin the branch of another application by mistake).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SaveSetting [appname, section, key, setting] &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is a statement that stores a new setting in the Registry or updates an existing one. It’s the only statement discussed in this section. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;appname &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the name of the application (or project) that stores the information in the Registry. It doesn’t have to be the actual name of the application; it can be any string you supply, as long as it’s unique for your application. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;section &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the name of the &lt;span style=""&gt; &lt;/span&gt;Registry section in whichthe key setting will be saved. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;key &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the name of the key setting that&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;will be saved. The last argument, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;setting&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, is the value of the key to be saved. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;setting &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;can’t be saved for any reason, a runtime trappable error is generated. The following statements store the keys “Left” and “Top” in the Startup section of the application’s branch in the Registry:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SaveSetting ÒMyAppÓ, ÒStartupÓ, ÒTopÓ, Me.Top&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SaveSetting ÒMyAppÓ, ÒStartupÓ, ÒLeftÓ, Me.Left&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;These values should be saved to the Registry when the application ends, and they&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;should be read when it starts, to place the Form on the desktop. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;GetSetting(appname, section, key, [default]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a key setting from an application’s branch in the Registry. The arguments &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;appname&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;section,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;key &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are the same as in the previous entry. The last &lt;span style=""&gt; &lt;/span&gt;argument, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;default&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, is optional and contains the value to return if no value for the specified key exists in the Registry.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To read the key values stored in the Registry by the statements in the Save- Settings() entry, use the following code segment:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Me.Top = GetSetting(ÒMyAppÓ, ÒStartupÓ, ÒTopÓ, 100)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Me.Left = GetSetting(ÒMyAppÓ, ÒStartupÓ, ÒLeftÓ, 150)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Don’t omit the default values here because the Form may be sized oddly if these keys are missing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;GetAllSettings(appname, section) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns a list of keys and their respective values from an application’s entry in the Registry. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;appname &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the name of the application (or project) whose key settings are requested.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;section &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the name of the section whose key settings are requested. The GetAllSettings() function returns all the keys and settings in the specified section of the Registry in a two-dimensional array. The element (0,0) of the array contains the name of the first key, and the elements (0,1) contains the setting of this key. The next two elements (1,0) and (1,1) contain the key and setting of the second element and so on. To find out how many keys are stored in the specific section of the Registry, use the LBound() and UBound() functions. The following statement retrieves all the keys in the Startup section for the MyApp application and stores them in the array AllSettings:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;AllSettings = GetAllSettings(ÒMyAppÓ, ÒStartupÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You can then set up a loop that scans the array and displays the key and setting pairs:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For i = LBound(AllSettings, 1) To UBound(AllSettings, 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print AllSettings(i, 0) &amp;amp; Ò = Ò &amp;amp; AllSettings(i, 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Miscellaneous Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This section describes the functions used in controlling program flow.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Choose(index, choice-1[, choice-2, ... [, choice-n]]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function selects and returns a value from a list of arguments. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;index &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a numeric value between 1 and the number of available choices. The following arguments are the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;available options. The function will return the first option if &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;index &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is 1, the second option if &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;index &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is 2, and so on. You can use the Choose() function to translate single digits to strings. The function IntToString() returns the name of the digit passed as an argument:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Function IntToString(int As IntegeR) As String&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;IntToString = Choose (i+1, ÒzeroÓ, ÒoneÓ, ÒtwoÓ, ÒthreeÓ, _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ÒfourÓ, ÒfiveÓ, ÒsixÓ, ÒsevenÓ, ÒeightÓ, ÒnineÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;index &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is less than one or larger than the number of options, the Choose function returns a Null value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;IIf(expression, truepart, falsepart) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns one of two parts, depending on the evaluation of &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. If the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is True, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;truepart &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is returned. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is not True, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;falsepart &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;returned. The IIf() function is equivalent to the following If clause:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If expression Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;result = truepart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;result = falsepart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In many situations, this logic significantly reduces the amount of code. The Min() and Max() functions, for instance, can be easily implemented with the IIf() function:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Min = IIf(a&lt;b,&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Max = IIf(a&gt;b, a, b)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Switch(expression1, value1, expression2, value2,….) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function evaluates a list of expressions and returns a value associated with the first expression in the list that happens to be True. If none of the expressions is True, the function returns Null. The following statement selects the proper quadrant depending on the signs of the variables &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;X &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Y&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;: &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Quadrant = Switch(X&gt;0 and Y&gt;0, 1, X&lt;0&gt;0, 1, X&lt;0&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If both &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;X &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Y &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are negative, the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Quadrant &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;variable is assigned the value 1. If &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;X &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is negative and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Y &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is positive, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Quadrant &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;becomes 2, and so on. If either &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;X &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;or &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Y &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is zero, none of the expressions are True, and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Quadrant &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;becomes Null. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Environ() &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function returns the environment variables (operating system variables set with the SET command). To access an environment variable use a numeric index or the variable’s name. If you access the environment variables with&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;an index value, as in:&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print Environ(2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;you’ll get a string that contains both the name of the environment variable and its&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;value, such as:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TMP=C:\WINDOWS\TEMP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To retrieve only the value of the TMP environment variable, use the expression:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Print Environ(ÒTMPÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and the function will return the value:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;C:\WINDOWS\TEMP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If you specify a nonexisting environment variable name, a zero-length string (“”) is returned.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Shell(pathname [,windowstyle]) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This function starts another application and returns a value representing the program’s task ID if successful; otherwise, it returns zero. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;pathname &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is the full path name of the application to be started and any arguments it may expect. The optional argument &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;windowstyle &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;determines the style of the window in which the application will be executed, and it can have one of the values shown in Table A.24.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TA B L E A . 2 4 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Values of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;pathname &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Value Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbHide (0) The window is hidden, and focus is passed to it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vbNormalFocus (1) The window has the focus and is restored to its original size and position. vbMinimizedFocus (2) The window is displayed as an icon that has the focus. vbMaximizedFocus (3) The window is maximized and has the focus. vbNormalNoFocus (4) The window is restored to its most recent size and position. The currently active window remains active. vbMinimizedNoFocus (6) The window is displayed as an icon. The currently active window remains active. &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Shell function runs other programs asynchronously. This means that a program started with Shell might not finish executing before the statements following the Shell function are executed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;M&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SChart is actually a complicated application packaged as an ActiveX control. It can chart data in many different ways including graphic depictions of data points arranged in data sets. Let’s say we need a graph of monthly sales over three years that contains three data sets, one for each year, and each data set is made up of 12 data points. The data can be plotted in many different ways and a few of them are shown in Figure B.1. As you can see, the MSChart control supports many graph types in two and three dimensions. Every item of the plot can be accessed and manipulated through code, so we turn our attention next to the objects exposed by the MSChart control, their properties, and methods. To use the MSChart control in a project you must add the Microsoft Chart Control 6.0 component through the Components dialog box. When you place an instance of the MSChart control on the Form, it’s automatically populated with random values. To change this behavior, set its &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;RandomFill &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property to False. You should display random data on the control to simplify the design process and then populate the control with the actual data from within your code. The random data values are limited in the range 0 to 100; the data points are labeled R1, R2, and so on; and the data sets are labeled C1, C2, and so on. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Basic Properties &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;One of the first properties of the MSChart control you must set in the control’s Properties window is the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;chartType &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property, which determines the type of the graph. Its value can be one of the constants shown in Table B.1. To size the MSChart control on the Form so that its data are easy to read, you must also set the values of the properties &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ColumnCount &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;RowCount&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, which are the number of columns and rows, respectively. To see the effect of the various settings of the chartType property, place an instance of the MSChart control on a Form and try the various settings in the Properties window. The Chart project, described later on and found in this topic’s folder on the CD,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;lets you change the type of the chart at runtime and set other related properties (rotation and illumination of 3D charts, for example). Many of the properties of the MSChart control discussed in this section are demonstrated by the Chart project. Open the Chart project and experiment with the chart type settings. You should think of the MSChart control as a grid, only its data are displayed graphically. The rows of the grid are the data points and the columns of the grid are the data sets, or &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;series&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. In Figure B.2 you see a MSChart control with three data sets (RowCount = 3) and 12 data points (ColCount = 12) in each set. Change the values of the Rows and Columns fields (which manipulate the RowCount and ColCount properties) to see how the chart’s appearance is affected. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TABLE B . 1 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Values of the chartType Property&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Constant Value Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType3dBar &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;0 3D bar graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType2dBar &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1 2D bar graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType3dLine &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2 3D line graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType2dLine &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3 2D line graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType3dArea &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;4 3D area graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType2dArea &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;5 2D area graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType3dStep &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;6 3D step graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType2dStep &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;7 2D step graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType3dCombination &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;8 3D combination graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType2dCombination &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;9 2D combination graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType2dPie &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;14 2D pie chart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChChartType2dXY &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;16 2D X-Y graph&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;By default, the data sets are mapped to the columns of the control and data points to the rows of the control. You can swap data points and data sets by checking the box Data In Rows. This control manipulates the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DataSeriesInRow &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property of the Plot object. This property accepts a Boolean value and is available at runtime only. By default, its value is False (the data series are mapped to the columns of the data grid). To access it, you must use the following expression: &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.DataSeriesInRow = True &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;When you switch the data sets and data points, Visual Basic updates the labels and legends accordingly. Run the Chart project and check the option Data In Rows. The control will reverse rows and columns (data sets and data points) and change the legends of the graph. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Using the MSChart Property Pages&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The simplest way to set up a MSChart control is to use the control’s property pages. Right-click the control on the Form and select Properties. The dialog box with the property pages shown in Figure B.3 will appear on your screen. On this dialog box you can manipulate many properties that relate to the appearance of the chart and you should use it to create the type of chart you want. Every time you change a few properties on the property pages, click the Apply button to see the effects of your changes on the control. The MSChart control provides eight property pages, which are described next. The parameters you can set through these pages will be rather obvious, so I won’t discuss them in detail.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;F I G U R E B . 3 :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The property pages of the MSChart control let you specify the appearance of the control with point-andclick operations.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Chart Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this page to specify the chart’s type and to determine whether:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Data points should be identified with markers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Multiple series should be stacked or plotted next to each other (see Figure B.4)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Series correspond to rows (by default, series are mapped to columns)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Series legends will be printed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Axis Page&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this page to set up the axes of the plot and the tick marks. On this window, select an axis (x-axis, y-axis, or second y-axis) in the Axis box and then set its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;F I G U R E B . 4 :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Multiple series can be plotted&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;next to each other (top)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;or stacked on top of each&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;other (bottom).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Axis Grid Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this page to set the properties of the major and minor grids of the chart. Select the axis whose grid you want to set and then specify the properties of its major and minor grid lines.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Series Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In addition to the data points, the MSChart control can plot various statistics on the chart. The statistics are the Minimum, Maximum, Mean, and Standard Deviation. Select the series whose statistics you want to plot and check the boxes in front of the statistic you want to display on the chart. The last statistic is called Regression and it’s a straight line that best describes the Data values of a series. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Series Color Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this page to set the appearance of each series in the plot. Select the series name in the Series box and set its properties. Some of the controls on this Form may be disabled, depending on the type of the chart.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Every item in a chart can have its own background, which can be specified on this page. Select the item whose background you want to set and then set the background’s property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this page to set the text of the graph title, axis labels, and footnote. Select the item you want to set in the Property Name box and then set its text, alignment, and orientation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Fonts Page &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Fonts page is where you specify the font to be used in rendering the text of the various items of the chart. First, you must select the item whose font you want to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;set in the Property Name box (Title, Axis Labels and Axis Titles, Legends, and Footnote) and then set the characteristics of the font for this item. The most important aspect of the data control is the data to be plotted, and you can’t set them through the Properties dialog box. There are many methods for populating the MSChart control, and they are described in the following section.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Accessing Data and Their Labels &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;One of the first operations of the MSChart control you must learn about is how to set and read its data. One method, which works through the Properties window but requires a lot of typing, is to set the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Column &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Row &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;properties to the appropriate values and access the corresponding cell with the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Data &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property. The value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;of the Column property identifies the current column in the data grid and it goes from 1 to ColumnCount. Likewise, the Row property identifies the current row and it goes from 1 to RowCount. Change the value of one of the properties, Column or Row (or both), in the Properties window and then locate the Data property. The current value should match the value of a data point on the graph. If Row=4 and Column=10, it’s the fourth point of the tenth data set. When you’re specifying the control’s data points, you can also specify the column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and row labels. The column labels correspond to data series and the row labels to data points. To set the label of a data series, assign the appropriate value to the Column property (1 for the first series, 2 for the second, and so on). Then assign the string you want to appear as legend for the selected series to the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ColumnLabel &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property. Likewise, to set the label of a data point, assign the row’s number to the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Row property and then assign the string you want to appear as legend for the selected data point to the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;RowLabel &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property. In the Properties window of the MSChart control, you will see a few more labelrelated properties: RowLabelCount, ColumnLabelCount, RowLabelIndex and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ColumnLabelIndex. You can specify more than one level of labels on the plot. If you set the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;RowLabelCount &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;to a value larger than 1, you can specify additional labels for the rows of the plot. To select the level of a label, set the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;RowLabelIndex&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;to a value and then assign the additional label to the RowLabel property. To produce the chart of Figure B.5 assign the following values to the properties listed here, in the same order:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set RowLabelCount to 3.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set RowLabelIndex to 2 and then RowLabel to “Monthly Sales in Dollars” (without the quotes).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set RowLabelIndex to 3 and then RowLabel to “for the last 3 years”. You can experiment on your own with the properties for the column labels and set multiple levels of labels for the chart’s columns. Usually, the data to be plotted are set from within an application’s code and not through the Properties window. After all, what use is it to always display the same data? You can use the process I just described from within your code to populate the grid, but it takes a lot of typing. To assign the value 99 to the second data point&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;of the third series, you’d have to enter the following code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Column = 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Row = 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Data = 99&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The simplest method to populate the MSChart control from within your code is to declare an array with the appropriate dimensions and assign the Data values to its elements. To create three data sets with 12 elements each, declare an array with 12 columns and 3 rows as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Dim arrData(1 To 12, 1 To 3) As Integer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Then, populate the array with the appropriate data. The following loop creates three data sets with random values in different ranges for the various data sets (100 to 300 for the first data set, 200 to 500 for the second data set, and 100 to 600 for the third data set):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For i = 1 to 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 1) = 100 + Int(Rnd() * 200) Ô Series 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 2) = 200 + Int(Rnd() * 300) Ô Series 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 3) = 100 + Int(Rnd() * 600) Ô Series 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You must then size the MSChart control’s data grid with the statements:&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.ColumnCount = 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.RowCount = 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and finally assign the array with the data to the control’s ChartData property:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MsChart1.ChartData = arrData&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The array’s dimensions must exactly match the numbers of columns and rows of the MSChart control. Notice that I declared both the lower and upper bounds of the array, to avoid a zero-based array. I could have also used the Option 1 statement in the Form’s code and declared the array as:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(12, 3) As Integer &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VB6 at Work: The Chart1 Project &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To demonstrate the techniques for populating a MSChart control and setting the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;labels with code, we’re going to build the Chart1 project, which is shown in Figure B.6. If you don’t want to enter the code shown next, open the Chart1 project, which you will find in this topic’s folder on the CD. Create a new project and place a MSChart control and a Command button on the Form. Name the Command button “Populate” and insert the following code in its Click event handler.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.1: The Populate Button’s Code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub bttnPopulate_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Dim arrData(1 To 12, 1 To 3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For i = 1 To 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 1) = 100 + Int(Rnd() * 200) Ô Series 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 2) = 200 + Int(Rnd() * 300) Ô Series 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 3) = 100 + Int(Rnd() * 600) Ô Series 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.RowCount = 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.ColumnCount = 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.ChartData = arrData&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The vertical axis (y-axis) will be labeled properly based on the data values, but the horizontal axis labels will be generic (R1, R2, and so on). Let’s label the horizontal axis with the names of the months. If the first column of the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;array&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;contains strings, these strings will be used as labels. Place a new Command button on the Form, name it “Label X-Axis”, and insert the following code in its Click event handler.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.2: The Label X-Axis Button’s Code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub bttnLabelX_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Dim arrData(1 To 12, 1 To 4)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For i = 1 To 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 1) = Left(MonthName(i), 3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 2) = 100 + Int(Rnd() * 200) Ô Series 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 3) = 200 + Int(Rnd() * 300) Ô Series 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;arrData(i, 4) = 100 + Int(Rnd() * 600) Ô Series 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.RowCount = 12&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.ColumnCount = 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.ChartData = arrData&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;There are no new statements in this code, except for the first statement in the loop, which assigns a string to the first element of each column. This string will become the label of the data set that corresponds to the column. Setting the legends of the plot is more complicated. To set the label of a series, you must use the expression:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(i).LegendText&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;where &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;i &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the index of the series. The Plot and SeriesCollection objects will be discussed later. Unlike axis labels, the plot’s legends are not displayed by default. This behavior is controlled by the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ShowLegend &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property. To display the legends shown in Figure B.6, place yet another Command button on the Form, &lt;span style=""&gt; &lt;/span&gt;name it “Show Legends”,and insert the following code in its Click event handler.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.3: The Show Legend Button’s Code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub bttnLegends_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For i = 1 To MSChart1.ColumnCount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(i).LegendText = i + 1997&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.ShowLegend = True&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The last few items you must set are the graph and axis titles. Atitle can be set with the control’s &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title.Text &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property. The axis titles are represented by the object &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisTitle&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, which will also be discussed later. The statements to display the titles of the graph shown in Figure B.6 are shown next. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.4: The Show Titles Button’s Code &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub bttnTitles_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Title.Text = ÒGraph TitleÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Axis(VtChAxisIdX).AxisTitle.Text = ÒX TITLEÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Axis(VtChAxisIdY).AxisTitle.Text = ÒY TITLEÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Axis(VtChAxisIdY2).AxisScale.Hide = True&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The last line hides the second y-axis, which is displayed by default. The Chart1 project demonstrates all the basic properties of the MSChart control, and you can use the project to experiment with the control. The information presented so far is the absolute minimum you need to set up a MSChart control and populate it with your data set(s). However, the MSChart control provides many properties and methods, which let you manipulate every aspect of its appearance from within your code. Its members are examined in the following sections. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Graph Items &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The MSChart control has more properties than any other control. Other than the data access controls, it probably has more properties than all the basic ActiveX controls combined. Every item on the chart, from the value and color of a data point to the location and alignment of the Labels, is exposed as an object which can be manipulated programmatically. I can’t list all the properties and methods&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;here, but most of these members can be easily located in the Object Browser, and their names usually reflect their role in programming the control. Instead, I will discuss the basic objects of a chart and the members you’ll be using most often. I will also present a few examples to demonstrate how to manipulate the basic items of a chart, such as the data values being plotted, their titles and legends, and how to edit a chart’s data interactively. After reading the information in this section, you should have a good understanding of the control’s structure, and you’ll be able to easily locate the object or member you need for a specific task in the Object Browser. Agraph is made up of the following objects, which represent distinct elements of the control’s sections (see Figure B.7):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The main area of the control, where the plot appears&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The graph’s titles&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Footnote &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The graph’s footnote&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The graph’s legends&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Each one of these elements is an object with numerous properties and methods. The richest and most complicated object is the Plot object, which represents the plot area. In the following sections I will present the basic members of these objects so you can get an idea of the structure of the control. To make the following sections easier to read and to help you locate the information you need, I’ve prefixed the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;properties of each object and their subordinate objects/properties by the name of the object they belong to. For example, the Axis property of the Plot object is listed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;as Plot.Axis. Because this property is an object, its properties are listed under the Plot.Axis object and they are prefixed accordingly. The AxisGrid property of the Axis object is listed as Plot.Axis.AxisGrid, and so on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Plot Object &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot object &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the area with the plot and it exposes many properties and methods. As you will see, many of these properties are objects, and accessing the various parts of the plot requires typing long expressions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Axis object represents the graph’s axes and exposes a number of properties, all of which are objects. Because a chart has two or three axes, the Axis object is a collection. Before you can call its properties, you must specify the desired axis either with an Index value or with the Item property. It’s easier to specify an Index value in parentheses after the name of the Axis object, and this index should have one of the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchAxisIdX vtchAxisIdY2 vtchAxisIdY vtchAxisIdZ &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;A two-dimensional plot has an x- and y-axis, and optionally, a second y-axis (&lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchAxisIdY2&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;), which is parallel to the main y-axis and appears on the right-hand side of the chart. To get rid of this axis, use the Hide property, which is discussed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;shortly. 3D charts have a z-axis too, which is identified with the constant &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchAxisIdZ &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To manipulate the chart’s axes from within your code, use the following properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisGrid &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The AxisGrid property determines the appearance of the chart’s major and minor grids.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisGrid.MajorPen &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisGrid.MinorPen &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;These are the properties of the pens that are used to draw the major and minor grids of the chart. Both properties are Pen objects, and you’ll find more information on this object (such as how to set the style of the grid lines and their colors) later on in the section “The Pen Object.” &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisScale &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The AxisScale object determines the scale of the axes and it exposes four properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisScale.Hide &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set this property to True to hide an axis:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Axis(vtChAxisIdY2).Hide = True&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The default value of the Hide property for all axes is False. This property is commonly used to get rid of the second y-axis.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisScale.Type &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Type &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property determines whether the axis is linear, logarithmic, or percentage-based. Its value can be one of the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchScaleTypeLinear vtchScaleTypeLogarithmic vtchScaleTypePercent &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If the scale of an axis isn’t linear, you’ll probably want to set the values of the properties LogBase or PercentBase.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisScale.LogBase &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LogBase &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property specifies if the scale of a given axis is logarithmic. If the axis is logarithmic, you must assign the base of the logarithm to this property. The value of this property is usually 10. &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisScale.PercentBase &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The MSChart control can plot the data values as percentages. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PercentBase &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property must be set&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;to the type of percentage and can have one of the constants in Table B.2. The data points are plotted as percentages of the quantity specified by the constant.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TABLE B . 2 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Constants of the PercentBase Property&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;constant TYPE OF PERCENTAGE PLOTTED&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchPercentAxisBasisMaxChart &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Maximum value on the chart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchPercentAxisBasisMaxColumn &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Values in the column with the largest range &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchPercentAxisBasisMaxRow &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Values in the row with the largest range &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchPercentAxisBasisSumChart &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Sum of all values on the chart &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchPercentAxisBasisSumColumn &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Sum of all values in a column &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchPercentAxisBasisSumRow &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Sum of all values in a row.&lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisTitle &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;AxisTitle &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is an object that represents the title of the respective axis. To access and manipulate the x-axis title from within your code, use the properties exposed by the object Plot.Axis(vtchAxisIdX).AxisTitle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisTitle.BackDrop &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This object represents the background of the title. See the later section “The BackDrop Object” for a description of its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisTitle.Font &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is the Font property that determines the font to be used for rendering the title’s text. This property is a Font object that exposes the standard properties of a font (e.g., Name, Size, Bold).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisTitle.Text &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property is the actual text of the axis title.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).AxisTitle.TextLayout &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the properties exposed by this object to control the layout of the text (e.g., alignment, orientation). See the later section “The TextLayout Object” for a discussion of its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Axis(axisID).AxisTitle.vtFont &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the properties and methods exposed by this object to specify the typeface and color that will be used to render the title’s text. It’s similar to the Font property, and its properties are discussed later in the section “The vtFont Object.” &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).Labels(i) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Labels &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is another collection that contains axis labels. Use the properties of this collection to control the appearance of the labels. The Label values are set automatically by the control and they depend on the values being plotted. However, you have complete control over the appearance of the labels with the following properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).Labels(i).BackDrop &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This object represents the background of the label. See the later section “The BackDrop Object” for a description of its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).Labels(i).Font &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This object represents the font used to render the numbers on the plot’s tick marks.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).Labels(i).Format &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property lets you change the default formatting of the Label values. To display all values with two decimal digits even if they are zero (e.g., 10.50 or 12.00), set the Format property to the string “#.00”. Any setting you can use with the Format() function can also be assigned to the Format property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).Labels(i).TextLayout &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the properties exposed by this object to control the layout of the text (e.g., alignment, orientation) on the tick marks of the plot. See the later section “The TextLayout Object” for a discussion of TextLayout object’s properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.Axis(axisID).Labels(i).vtFont &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the font that will be used to render the legend text. See the later section “The vtFont Object” for more details.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.DataSeriesInRow &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is one of the few properties of the Plot object that is not an object. To switch the order of series and data points, set this property to True. The legends and the labels of the x-axis are also swapped automatically. The Data- SeriesInRow property is False by default and the series (data sets) corresponds to the columns of the data grid.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.SeriesCollection(i) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SeriesCollection &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is a collection that contains all the data series in the control’s data grid. The first series is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(1) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and the last one is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(MSChart1.ColumnCount)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Each SeriesCollection object exposes a number of properties and methods that you can use to customize the appearance of the series on the plot.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.SeriesCollection(i).DataPoints(j) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This collection contains all the data values in a series. The first value in the first series is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(1).DataPoints(1) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and the last one is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(1).DataPoints(MSChart1.RowCount)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.SeriesCollection(i).LegendText &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property determines the legend of a specific series. To assign new legends to three series in a chart, use the following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.SeriesCollection(1).LegendText = Ò1999 Q1Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.SeriesCollection(2).LegendText = Ò1999 Q2Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.SeriesCollection(3).LegendText = Ò1999 Q3Ó&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.SeriesCollection(i).Pen &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pen &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is an object that lets you manipulate the properties of the pen used to plot a specific series. See the later section “The Pen Object” for more details.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Plot.SeriesCollection(i).SecondaryAxis &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property determines whether a specific series is mapped to the secondary axis of the chart, and it’s a True/ False value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Legend Object &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Legend object represents the area of the chart where the legends are printed. Through its properties you can manipulate the location of the legend area, the font of the chart’s legends, and other similar properties. To access the values of the plot’s legends (which correspond to the plot’s series), you must use the property:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.SeriesCollection(i).LegendText &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;where &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;i &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is the desired legend’s index. The basic properties and methods exposed&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;by the Legend object are discussed next.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend.Backdrop &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is an object that represents the legend’s background. See the later section “The BackDrop Object” for more information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend.Location &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Location &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is an object that exposes three properties that specify the location of the legend area on the chart:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend.Location.LocationType &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LocationType &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property determines the location of the legend area and it can have one of the following values listed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchLocationTypeBottom vtchLocationTypeBottomLeft&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchLocationTypeBottomRight vtchLocationTypeCustom&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchLocationTypeLeft vtchLocationTypeRight&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchLocationTypeTop vtchLocationTypeTopLeft&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchLocationTypeTopRight&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend.Location.Rect &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Rect &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property to specify the coordinates of the rectangle that encloses the legend area in pixels (if the Location- Type property’s value is &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtchLocationTypeCustom&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;). To specify the coordinates of this rectangle use the Min and Max properties, as follows: &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Legend.Location.Rect.Min.X = minXCoordinate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Legend.Location.Rect.Min.Y = minYCoordinate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Legend.Location.Rect.Max.X = maxXCoordinate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Legend.Location.Rect.Max.Y = maxYCoordinate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Finally, you can make the legend visible or invisible, with the Visible property of the Location object, which has a True/False value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend.TextLayout &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies various options for the layout of the chart’s legends. See the later section “The TextLayout Object” for more information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend.vtFont &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the font that will be used to render the legend text. See the later section “The vtFont Object” for more information. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Footnote Object &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This object represents the footnote of the graph and provides the following five properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FootNote.Backdrop &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is an object that represents the footnote’s background. See the section “The BackDrop Object” later on for more information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FootNote.Font &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property is a Font object that exposes the properties of the font that’s used to render the footnote’s text. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FootNote.Text &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the text of the footnote.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FootNote.TextLength &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property is a read-only variable that returns&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the length of the footnote’s text.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FootNote.vtFont &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property is equivalent to the Font property and has the same properties and methods as the vtFont object, which is discussed later in the section “The vtFont Object.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Title Object &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This object represents the graph’s title. Its properties have different names but the same functions as those of the Footnote object listed previously; they include:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title.BackDrop &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The title’s background; see the section “The BackDrop Object” for a discussion of its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title.Font &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The title’s font properties &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title.Text &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The title’s text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title.TextLayout &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The layout of the title’s text; see the section “The Text- Layout Object” for a discussion of its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Title.vtFont &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;An alternative property for specifying the title’s font properties; see the section “The vtFont Object” for a discussion of its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The vtFont Object &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;object represents a Font object and provides a set of members similar to the vbFont object. However, they are different than the Font’s members. The vtFont object exposes the following eight properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.Name &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Name &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is a String value that returns (or sets) the name of the typeface (e.g., “Comic Sans MS” or “Verdana”).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.Size &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the typeface size in points.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.Style &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the typeface style, and it can have one of the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFontStyleBold vtFontStyleItalic vtFontStyleOutline&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To apply more than one style, combine these constants with the Or operator:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.Style = VtFontStyleBold Or VtFontStyleItalic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.Effect &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property lets you apply the strikethrough or underline effect to a font, and it can have one if the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFontEffectStrikeThrough vtFontEffectUnderline&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You can specify both special effects for the font by combining the two constants with the Or operator:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.Effect = vtFontEffectStrikeThrough Or vtFontEffectUnderline&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.vtColor &lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtColor &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is a property of the vtFont object that lets you specify&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the color of the font. The vtColor object exposes the following properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.vtColor.Automatic &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The color of the font is determined automatically by the control and depends on the object to which the vtColor property applies.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtColor.Blue, vtColor.Green, vtColor.Red &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;These three properties determine the basic color components of the font’s color. To specify a midmagenta tone with the vtColor property, use the following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Legend.VtFont.VtColor.Blue = 128&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Legend.VtFont.VtColor.Green = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Legend.VtFont.VtColor.Red = 128&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Notice that the MSChart control doesn’t recognize Long Color values, as do most color properties of other ActiveX controls, and there’s no property that returns the color of a font. You must retrieve all three Color values mentioned here.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.vtColor.Set &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In addition to the properties mentioned here, the vtColor object provides the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;method, which sets the font’s color. The Set method accepts three arguments, which are three integers in the range 0 to 255, and they represent the intensity of the three basic color components. The Set method is quite similar to Visual Basic’s RGB()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;function and its syntax is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFont.Set red, green, blue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The TextLayout Object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TextLayout &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;object is used to specify various options for the layout of the text of the chart’s title and/or footnote. Both the Title and Footnote objects have a Text- Layout property, which is an object with the following four properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TextLayout.HorzAlignment &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this property to specify how the legend is aligned horizontally. It can have one of the following values (their function is reflected in their name):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtHorizontalAlignmentCenter vtHorizontalAlignmentFill&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtHorizontalAlignmentFlush vtHorizontalAlignmentLeft&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtHorizontalAlignmentRight&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TextLayout.VertAlignment &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies how the legend is aligned vertically. It can have one of the following values (their function is reflected in their names):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtVerticalAlignmentBottom vtVerticalAlignmentCenter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtVerticalAlignmentTop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TextLayout.Orientation &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the orientation of the legend. It can have one of the following values:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtOrientationDown vtOrientationHorizontal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtOrientationUp vtOrientationVertical&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TextLayout.WordWrap &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is a Boolean value that specifies if the text of the legend will be wrapped if it doesn’t fit in the available area.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Backdrop Object &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;object represents the background of the various items on a chart, including the plot, legends, and axis titles. The background can be filled with a brush, it can have a frame, drop a shadow, and so on. All these features can be accessed through the following objects and properties:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Fill &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Fill &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property specifies how an object will be filled. It exposes the Brush and Style objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Fill.Brush &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Brush &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is a Brush object that determines how the object will be filled. Its properties are described later on in the section “The Brush Object.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Fill.Style &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Style &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property determines if the corresponding object will be filled with a brush. This property’s valid values are the constants &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFillStyleBrush &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFillStyleNull.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Frame &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is another object that represents the frame of the backdrop. It can be manipulated through the following three properties:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Frame.FrameColor &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;BackDrop.Frame.SpaceColor &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use these two properties to specify the color of the frame. Both properties are objects that expose the same properties (Automatic, Blue, Green, and Red) and the Set method of the vtFont object’s Color property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Frame.Style &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property determines the frame’s style. It can have one of the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFrameStyleDoubleLine vtFrameStyleNull vtFrameStyleSingleLine&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtFrameStyleThickInner vtFrameStyleThickOuter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To see the effect of these settings on the frame’s style, try them with a statement like the following one:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Backdrop.Frame.Style = vtFrameStyleThickInner&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Frame.Width &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the frame’s width in pixels.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Shadow &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property is also an object that determines if the backdrop will have a shadow and the style of the shadow. To create a shadow behind a frame, you must use the Backdrop.Shadow.offset property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Backdrop.Shadow.Offset &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property determines the offset of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;shadow in pixels. To set the shadow’s offset, use the Offset object’s X and Y properties or the Set method. To specify a shadow depth of three pixels in both directions, use the statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Backdrop.Shadow.Offset.X = 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Backdrop.Shadow.Offset.X = 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The syntax of the equivalent Set method is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Backdrop.Shadow.Offset.Set 3, 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This statement will create a shadow behind the Plot area three pixels tall and three pixels wide.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Brush Object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Brush &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;object represents the brush used to draw various parts of the plot, such as the bars of a bar graph, the backdrop of a plot, or the legends. The brush can be&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;solid or patterned and you can specify the pattern and color through the following four properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Brush.FillColor &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property lets you specify the brush’s color. If the brush style is solid, the object is filled with this color. If it’s patterned, the specified pattern is drawn on top of this color. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;FillColor &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property is a vtColor object,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and you can use the properties and methods discussed previously in the section “The vtColor Object” to manipulate the FillColor property.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Brush.Style &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property determines the fill pattern of the brush. It can have one of the following values:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushStyleHatched vtBrushStyleNull&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushStylePattern vtBrushStyleSolid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If the Style property is set to &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushStylePattern&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, you should use the Index property to specify the pattern’s style.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Brush.Index &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Index &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property to specify a pattern other than solid to fill the object to which the Brush applies. The Index property can have one of the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPattern25Percent vtBrushPatternBoldUpDiagonal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPatternHorizontal vtBrushPattern50Percent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPatternBoldDownDiagonal vtBrushPatternTrellis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPattern75Percent vtBrushPatternBoldVertical&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPatternInvertedTrellis vtBrushPattern88Percent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPatternUpDiagonal vtBrushPatternGrid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPattern94Percent vtBrushPatternDownDiagonal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPatternChecks vtBrushPatternBoldHorizontal&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtBrushPatternVertical vtBrushPatternWeave&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To see the effect of the various settings of the Index property use a statement like the following one to assign the constants mentioned in this paragraph to the Index property:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Backdrop.Fill.Brush.Index = VtBrushPattern50Percent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Brush.PatternColor &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is another vtColor object that determines the pattern’s color. Use the Automatic, Red, Green, and Blue properties or the Set method to set the pattern color.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Pen Object &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pen &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;object represents the pen used to draw various items of the chart, such as the lines in a line plot, the lines and tick marks of an axis, or the major and minor grids (properties MajorPen and MinorPen, respectively). The Pen object provides five properties for controlling the pen’s characteristics.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pen.Cap &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the cap of the line segments used in line plots. It can have one of the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtPenCapButt vtPenCapRound vtPenCapSquare&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pen.Join &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies how successive line segments in line plots are joined to each other. It can have one of the following constants:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtPenJoinBevel vtPenJoinMiter vtPenJoinRound&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pen.Style &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This property specifies the style of the line. It can have one of the following values:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtPenStyleDashDit vtPenStyleDashDitDit vtPenStyleDashDot&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtPenStyleDashDotDot vtPenStyleDashed vtPenStyleDitted&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtPenStyleDotted vtPenStyleNative vtPenStyleNull&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtPenStyleSolid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pen.vtColor &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this property to set the color of the pen; it’s another vtColor object. See the earlier section “The vtColor Object” for a description of its properties.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Pen.Width &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Use this property to set the pen’s width in pixels.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Copying and Pasting Chart Data &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The MSChart control provides two powerful methods for exchanging data with other applications: the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;EditCopy &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;EditPaste &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;methods. The EditCopy method copies the contents of the control to the Clipboard, and the EditPaste method copies the contents of the Clipboard on the control. The two methods can copy both Numeric data (including the labels) and bitmaps. Depending on the destination of the Paste command, the control’s contents will be pasted either as text or as a metafile.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Figure B.8 shows the Form of the DataEdit Project, which is discussed in the following section. This application lets you edit the grid’s data and copy it to the Clipboard. Let’s discuss the code behind the Copy and Paste buttons. If you click the Copy Data button, the control’s data are copied to the Clipboard with the statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.EditCopy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If you start a text editor and issue the Paste command, the grid’s contents will be pasted as text. Each row of the data grid will be placed on a new line and consecutive data points will be delimited with a Tab character. Figure B.9 shows how the contents of a MSChart control with four columns and 12 rows would look. Notice that the row and column labels are also copied along with the data. If you edit the data (without changing the structure), you can bring them back to the control with the Paste Data button. Change a few values in NotePad (you can also add or remove lines or columns), select all the data with the mouse or the Edit&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ã&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Select&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;All command, and copy them to the Clipboard with the Edit &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ã &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Copy command. Since the data comes from a text editing application, the Clipboard contains plain text. The data can be pasted back on the control with the statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.EditPaste&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Click on the Copy Data button again, and this time, start a bitmap editing application like Paint and paste the data. The same data will be copied from the Clipboard as a bitmap (see Figure B.10). If you examine the contents of the Clipboard at&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;this point, you’ll see that they are described as text, bitmap, and metafile. Depending on the type of data the destination application recognizes, the chart will be copied as one of those types. You can also use another application to generate the data grid and then copy and paste it on the MSChart control with the EditPaste method. For example, you can&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;select a range of cells in Excel, copy them with Excel’s Edit&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ã&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Copy command, and paste them on the chart with the Paste Data button. You can also use Visual Basic’s&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid control to enter data and then plot them on a MSChart control. In the following section, we’ll look at how you can couple a MSChart and a MSFlexGrid control to make them work in tandem. The MSFlexGrid control is the data entry and editing tool and the MSChart control displays the data graphically. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Editing Chart Data &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You’ve learned how to populate the grid, edit data values from within your code, paste all the data values to a text editing application, and edit the data values, but there’s no method for editing the data grid interactively. The MSChart control’s internal data grid can’t be edited directly. It’s possible, however, to select points&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;on the chart and edit them. To do so, you must program the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SeriesSelected &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;PointSelected &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;events, which are recognized by the MSChart control. As you may&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;have noticed, when you click on a data point on the MSChart control for the first&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;time, the entire series (data set) is selected. If you then click on a data point on the selected series, the point is selected. When a series is selected, the SeriesSelected event is fired and its handler’s declaration is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub MSChart1_SeriesSelected(Series As Integer, _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MouseFlags As Integer, Cancel As Integer)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Series &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is an integer that identifies the selected series (the first series’ index is 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MouseFlags &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument contains information about the status of the Control and Shift keys. Its values are &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChMouseFlagControlKeyDown &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;(=8) if the Control key is down when the mouse is clicked and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;vtChMouseFlagShiftKeyDown &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;(=4) if the Shift key is down. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Cancel &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument is a True/False argument that can be set from within the subroutine’s code to cancel the selection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;TIP &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To let the user select a data point without selecting a series first, you can set the AllowSeriesSelection property to False. &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;When a data point is selected, the PointSelected event is fired. Its handler’s declaration is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub MSChart1_PointSelected(Series As Integer,_&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DataPoint As Integer, MouseFlags As Integer, Cancel As Integer) &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Its arguments are the same as for the SeriesSelected event, except for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DataPoint &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;argument, which reports the index of the selected point in the selected series (the first data point’s index is 1). To access the value of the selected point on the chart, use the following statements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Column = Series&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Row = DataPoint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;dataValue = MSChart1.Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;dataValue &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;holds the value of the selected point and you can adjust it from within your code accordingly. Then, update the chart by assigning the new value to the same data point:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Data = dataValue * 1.10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;You can also use the SeriesSelected event to edit an entire data set. For instance, you can increase all the values in the series by a given percentage, change its color, and so on. To change the color of an entire series, you must access the selected series with the expression:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Dim thisSeries As Series&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set thisSeries = Mschart1.Plot.SeriesCollection(series)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Then, you must request the Pen object of the series and call its Set method to change the series color:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;thisSeries.Pen.VtColor.Set(red, green, blue) &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Red&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;green &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;blue &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are the three color components you would use with RGB() function to set a Color value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;VB6 at Work: The DataEdit Project&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Now we can look at the code of the DataEdit project, which uses a MSChart and a MSFlexGrid control to display the same data in different formats (the application’s Form is shown in Figure B.8). The MSFlexGrid control contains Numeric data and it is plotted on the MSChart control. The two controls are coupled as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;When the application’s Form is loaded, the MSChart control’s (random) data are copied to the corresponding cells of the MSFlexGrid control. The columns of the grid are also colored with the same color as the corresponding series on the graph.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;2. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;When the user selects a data point, a TextBox is displayed over the corresponding cell, so that the user can edit the cell’s value in the TextBox control (this technique was discussed in detail in Chapter 9 in the section “The MSFlexGrid Control”).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;3. &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The user can commit the changes by pressing Enter or by moving the focus to another cell with the mouse. At this point, the cell’s contents are copied to the MSChart control’s data grid and the chart is updated automatically. Let’s start with the code that initializes the MSFlexGrid control, which is executed from within the Form’s Load event:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.5: Copying the Chart’s Data to a Grid Control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub Form_Load()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Me.Show&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Me.Refresh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Col = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.ColWidth(0) = TextWidth(ÒPOINT # 999Ó)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For irow = 1 To MSChart1.RowCount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Row = irow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Text = ÒPOINT # Ò &amp;amp; irow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For icol = 1 To MSChart1.ColumnCount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Column = icol&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Col = icol&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Row = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Text = ÒSET # Ò &amp;amp; icol&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If MSChart1.ChartType &lt;&gt; VtChChartType2dLine Or _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.ChartType &lt;&gt; VtChChartType3dLine Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;With MSChart1.Plot.SeriesCollection(icol)._&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DataPoints(-1).Brush.FillColor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;clr = RGB(.Red, .Green, .Blue)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End With&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;With MSChart1.Plot.SeriesCollection(icol).Pen.VtColor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;clr = RGB(.Red, .Green, .Blue)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End With&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For irow = 1 To MSChart1.RowCount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Row = irow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Row = irow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Col = icol&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Text = MSChart1.Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.CellBackColor = clr&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Ô In case the chart is 3D, rotate it&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.View3d.Set 60, 30&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The MSFlexGrid control’s size must match the size of the MSChart control’s data grid. At design time, you must set the property MSFlexGrid1.Rows to the value of the property MSChart1.RowCount + 1 (to account for the fixed column of the grid) and the property MSFlexGrid1.Cols to the value of the property MSChart1.ColumnCount + 1 (to account for the fixed row). The first loop in the previous listing sets the headings of the fixed column. Then comes a nested loop that scans the columns of the data grid and the rows within each column:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For icol = 1 To MSChart1.ColumnCount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;For irow = 1 To MSChart1.RowCount&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;{process cell}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In the outer loop, the code sets the current column’s heading and assigns the color used to render the current data set to the matching column of the MSFlexGrid control. All types of charts use a Brush object to draw the chart, except for line plots, which use a Pen object. The long If ... Else structure extracts the color of the Pen or Brush object (depending on the type of the plot) and uses it to color the current column of the grid. Notice how I used the With structure to simplify the code. The expression for accessing the color of the Brush object is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(icol).DataPoints(-1).Brush.FillColor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;To extract the three basic colors of the Brush object’s Color value, you must call the properties:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(icol).DataPoints(-1).Brush.FillColor.Red&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(icol).DataPoints(-1).Brush.FillColor.Green&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.SeriesCollection(icol).DataPoints(-1).Brush.FillColor.Blue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and then blend them with the RGB() function to obtain the desired Color value in a format that can be used to set the CellBackColor property of a cell on the MSFlexGrid control. Without the With structure, you’d have to enter three very long lines.The previous three lines can be compressed to the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;With MSChart1.Plot.SeriesCollection(icol).DataPoints(-1).Brush.FillColor&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;clr = RGB(.Red, .Green, .Blue)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End With&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Notice the use of the Index value &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;–1 &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;for the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DataPoints &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;array. We’re interested in the Brush object, which is common for all data points in the series; we’re not interested in specific Data values. The inner loop scans each Data value in the current&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;column (series) of the data grid and assigns its value to the current cell of the MSFlexGrid control. It also sets the background of the cell to the color used by the MSChart control to render the current series. The code is fairly lengthy, but straightforward.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Interactive Editing of Data Values &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;After the Form is loaded, the MSFlexGrid control contains the values of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart control’s data grid. To edit the control interactively, you must program the MSChart control’s PointSelected event as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.6: Preparing to Edit a Data Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub MSChart1_PointSelected(Series As Integer, _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;DataPoint As Integer, MouseFlags As Integer, Cancel As Integer)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Column = Series&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Row = DataPoint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Row = MSChart1.Row&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSFlexGrid1.Col = MSChart1.Column&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SetTextBox&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The first four lines locate the cell that corresponds to the Data value that was clicked on the MSChart control. Then, the code calls the SetTextBox subroutine, which prepares the hidden TextBox for editing. The SetTextBox subroutine’s listing is shown next.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.7: The SetTextBox() Subroutine&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Sub SetTextBox()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Left = MSFlexGrid1.Left + MSFlexGrid1.CellLeft&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Top = MSFlexGrid1.Top + MSFlexGrid1.CellTop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Width = MSFlexGrid1.CellWidth&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Height = MSFlexGrid1.CellHeight&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Text = MSFlexGrid1.Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.SelStart = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.SelLength = Len(Text1.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Visible = True&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.SetFocus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This subroutine resizes and moves the TextBox control on top of the current cell of the MSFlexGrid control, assigns the cell’s contents to the TextBox control, and moves the focus to it. The TextBox is then ready to accept user input. After the user&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is done editing the current cell, they can press the Enter key to commit the changes, or move the focus to another control altogether. In either case, the same code is executed. You must monitor the Enter key press from within the TextBox control’s KeyPress event handler. If Enter is pressed, the program copies the new value to the MSChart control’s data grid and makes the TextBox control invisible:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.8: Committing the Changes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub Text1_KeyPress(KeyAscii As Integer)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If KeyAscii = 13 Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Data = Text1.Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Visible = False&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The same actions take place from within the TextBox control’s LostFocus event&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;handler:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub Text1_LostFocus()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Data = Text1.Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1.Visible = False&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The user may also commit the changes by clicking on another cell. In this case, we must move the TextBox control on top of another cell and prepare it for editing. Here’s the listing of the MSFlexGrid control’s Click event handler:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub MSFlexGrid1_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Row = MSFlexGrid1.Row&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Column = MSFlexGrid1.Col&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;SetTextBox&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The editing process will also end if the user scrolls the grid. If the contents of the grid are scrolled, the TextBox control will not be scrolled along with the other cells; it will end up on another cell. To avoid a potentially confusing situation, we&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;must end the editing of the current cell from within the MSFlexGrid control’s Scroll event:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub MSFlexGrid1_Scroll()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Ô Remove this line to see what happens when&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Ô the FlexGrid control is scrolled&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1_KeyPress (13)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;We simply call the &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Text1_KeyPress &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;event, passing the ASCII value of the Enter key as argument to end the editing of the current cell. Run the DataEdit project and edit the chart interactively. Notice how you can select the point to edit either on the chart or grid. No matter how a point Is selected, it’s edited on the MSFlexGrid control. DataEdit can become your starting point for many custom applications that&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;combine two of the most powerful ActiveX controls. There are many similarities between the MSChart and MSFlexGrid controls. They both store data in a grid with rows and columns, but they present their data to the user in different formats, both equally useful. The Copy and Paste buttons on the application’s Form were discussed earlier in detail in the section “Copying and Pasting Chart Data.” To complete the discussion of the project, I will show you the code behind these buttons.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Code B.9: Copying and Pasting the Chart’s Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub bttnCopy_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.EditCopy&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub bttnPaste_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.EditPaste&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Clipboard.GetFormat(vbCFBitmap)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Clipboard.GetFormat(vbCFMetafile)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Debug.Print Clipboard.GetFormat(vbCFRTF)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub bttnPsteBMP_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;frmGRAPHBitmap.Show&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;frmGRAPHBitmap.Picture1.Picture = Clipboard.GetData()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Paste Graph Bitmap button pastes the chart as a bitmap on another Form, which contains a PictureBox control. The PictureBox control’s AutoSize property is set to True and the bitmap on the Clipboard is placed on the control with the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;GetData() method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Setting Chart Titles&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Achart has several titles, which are listed next, along with the properties that allow you to access and manipulate them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Graph Title &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is the chart’s title, which appears by default above the chart. To access the chart’s title, use the properties of the MSChart1.Title object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;X-axis Title &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is the title of the x-axis. To access the x-axis title, use the properties of the MSChart1.Plot.Axis(vtChAxisIdX) object. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Y-axis Title &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is the title of the y-axis. To access the y-axis title, use the properties of the MSChart1.Plot.Axis(vtChAxisIdY) object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Y2-axis Title &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is the title of the second y-axis (the one on the right of the chart). To access the y2-axis title, use the properties of the MSChart1.Plot.Axis(vtChAxisIdY2) object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Z-axis Title &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This is the title of the z-axis, which applies to 3D charts only. To access the z-axis title, use the properties of the MSChart1.Plot.Axis(vtChAxisIdZ) object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;· &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Legend &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;This object represents the plot’s legends. To access the legends, use the properties of the MSChart1.Legend object. All of the above properties expose a vtFont object as property, which you can use to manipulate the font for rendering the corresponding text. Except for the Legend object, all other objects have a Text property, which lets you specify the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;corresponding title. The legend’s text is determined by the data and it must be specified along with the data or through the LegendText property of the Series Collection object of the appropriate data series. The Titles project, shown in Figure B.11, demonstrates the basic properties of the various objects that represent the titles of a chart. Open the Titles project (in this topic’s folder on the CD) and examine the code that calls the Font common dialog box. The code uses the vtFont object of the various parts of the control to set the initial values on the Font common dialog box. After the user has made their selection(s) on the Font dialog box, the new values are extracted and assigned to the corresponding members of the vtFont object. One item about this project’s code I should mention here is that the Font common&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;dialog box returns the selected font’s color as a Long Color value. The code uses the functions Red(), Green(), and Blue() to extract the color components of the selected color. These functions are shown next:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Public Function Red(ByVal rgb As Long) As Integer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Red = &amp;amp;HFF&amp;amp; And rgb&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Public Function Green(ByVal rgb As Long) As Integer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Green = (&amp;amp;HFF00&amp;amp; And rgb) \ 256&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Public Function Blue(ByVal rgb As Long) As Integer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Blue = (&amp;amp;HFF0000 And rgb) \ 65536&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Rotating and Lighting 3D Charts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Three-dimensional charts can be rotated and illuminated in different ways. A3D object can be arranged in the space by rotating it around its vertical and horizontal axes. If you rotate the object by the appropriate angle in the two directions, you can orient the object any way you like. To rotate a 3D chart, use the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;View3D &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property of the Plot object. The angle of rotation around the vertical axis is called &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Rotation &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and angle of rotation around the horizontal axis is called &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Elevation&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;. To set these angles individually, use the Elevation and Rotation properties of the View3D object:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.View3D.Rotation = 60&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.View3D.Elevation = 45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Both angles must be specified in degrees. You can also set both angles with the Set method, whose syntax is shown here:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.View3D.Set 60, 45&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;In addition to arranging a 3D chart in the space, you can also illuminate it with the members of the Light object. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Light &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;object is a property of the Plot object, and it exposes several properties which let you manipulate the illumination of the chart programmatically. Before you can use the properties of the Light object, you must understand the illumination model used by the MSChart control, which is fairly simple. 3D charts can be illuminated with two types of light: ambient and directional light. The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;ambient light &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;is uniform everywhere and illuminates the entire scene.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;directional light &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;comes from a source (a spot light) placed at a specific point in the space surrounding the chart, and it is directed toward the center of the chart. To set the intensity of the ambient light, set the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;AmbientIntensity &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property to a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;value between 0 (no ambient light) and 1 (maximum intensity). To illuminate a chart with directional light, you must create one or more light sources with the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;LightSources &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;property of the Light object. The LightSources property is a collection to which you can add new light sources with the Add method: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Light.LightSources.Add (X, Y, Z, intensity) &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;X&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Y &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Z &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are the coordinates of the light source and the last argument is the intensity of the light source (a value between 0 and 1). The coordinates are not absolute units. If a chart is enclosed in a box with 1 &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;´ &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1 &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;´ &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;1 dimensions and centered around the origin, select the coordinates of the light source so that you can control the angle at which it will illuminate the scene. To change the characteristics of an existing light source, use the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Set &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;method, which also allows you to set the color of the light source.&lt;span style=""&gt;  &lt;/span&gt;The Set method’s syntax is shown next:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Light.LightSources(1).Set red, green, blue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Red&lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;, &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;green, &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;blue &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;are the intensities of the basic color components (their value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;must be a number between 0 and 1).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Two related properties are the &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;EdgeVisible &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;EdgeIntensity &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;properties, which work together to highlight the edges of the chart. When AmbientIntensity is set to a low value to produce a dark chart, you can set the EdgeVisible property to True and the EdgeIntensity property to a high value to highlight the edges of the chart. Open the Chart project (in this topic’s folder on the CD), set the chart’s type to a 3D type, and then turn on and off the checkbox Visible Edges to see the effect of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;the EdgeVisible property. When the Visible Edges Option button is clicked, the following code is executed:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub Check1_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Ô Make edges visible&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Light.EdgeIntensity = Check1.Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The Add Light button adds a new spot light by manipulating the first member of the LightSources collection. The code in this button’s Click event handler sets the color of the spotlight to a random value with the following statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub Command4_Click()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.Light.LightSources(1).Set _&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Rnd() * 10, Rnd() * 10, Rnd() * 10, Rnd()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;The two scroll bars rotate 3D charts by calling the Set method of the View3D property. The first argument of the Set method is the Rotation angle and the second argument is the Elevation angle. Here’s the code that’s executed when the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;scroll bars change value:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub HScroll1_Change()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.View3d.Set HScroll1.Value, HScroll2.Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;Private Sub HScroll2_Change()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;MSChart1.Plot.View3d.Set HScroll1.Value, HScroll2.Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;If you open the Object Browser in the Visual Basic IDE and select the MSChart Lib library, you’ll see that the MSChart control exposes many more objects and properties than can be discussed here. Armed with the information presented&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;here, you should be able to figure out how to use the other objects and members&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;of the control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size: 10pt; font-family: Verdana; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-4056705109545556159?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/4056705109545556159/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/06/visual-basic-dictionary-2.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/4056705109545556159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/4056705109545556159'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/06/visual-basic-dictionary-2.html' title='Visual Basic Dictionary 2'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-5000259802385003490</id><published>2008-06-14T00:23:00.000-07:00</published><updated>2008-07-02T01:32:07.311-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic 6.0'/><title type='text'>Visual Basic Dictionary 1</title><content type='html'>&lt;div style="text-align: justify; font-family: courier new;"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;Input/Output Functions&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;Visual Basic provides two basic functions for displaying (or requesting) information to the user: MsgBox() and nputBox(). Windows applications should communicate with the user via nicely designed Forms, but the MsgBox() and InputBox()functions are still around and quite useful.&lt;br /&gt;InputBox(prompt[, title][, default][, xpos][, ypos][, helpfile, context]) The InputBox() function displays a dialog box with a prompt and a TextBox control and waits for the user to enter some text and click on the OK or Cancel button.The arguments of the InputBox() function are shown in Table A.2.&lt;br /&gt;&lt;br /&gt;TA B L E A . 2 : The Arguments of the InputBox() Function&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;ARGUMENT WHAT IT IS DESCRIPTION&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;prompt The Prompt that appears in the If necessary, the prompt is broken into multiple lines dialog box automatically. To control line breaks from within your code, use a carriage return character or a linefeed character (Chr(10)).&lt;br /&gt;title The title of the dialog box If you omit this argument, the application’s name is displayed as the title.&lt;br /&gt;default The default input (if any) If you anticipate the user’s response, use this argument to display it when the dialog box is first opened. xpos, ypos The coordinates of the upper left Expressed in twips. corner of the dialog box&lt;br /&gt;helpfile The name of the Help file Provides context-sensitive help for the dialog box.&lt;br /&gt;context The number within the Help file Assigned to the specific topic.&lt;br /&gt;The simplest format of the InputBox() function is as follows:&lt;br /&gt;SSN = InputBox(ÒPlease enter your social security numberÓ)&lt;br /&gt;The string that the user enters in the dialog box is assigned to the variable SSN.&lt;br /&gt;The return value is always a string, even if the user enters numeric information.&lt;br /&gt;When prompting for input with the InputBox() function, always check the value&lt;br /&gt;returned by the function. At the very least, check for a blank string. Use the IsNumeric()function if you expect the user to enter a number, use the IsDate() function if you expect the user to enter a date, and so on. BDay = InputBox(ÒPlease enter your birth dateÓ)&lt;br /&gt;&lt;br /&gt;If IsDate(Bday) Then&lt;br /&gt;   MsgBox ÒPreparing your HoroscopeÓ&lt;br /&gt;Else&lt;br /&gt;   MsgBox ÒPlease try again with a valid birth dateÓ&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;MsgBox(prompt[, buttons][, title] [, helpfile, context]) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The MsgBox function displays a dialog box with a message and waits for the user to close it by clicking on a button. The message is the first argument (&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;prompt&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;). The simplest form of the MsgBox() function is as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;MsgBox Your computer is running out of memory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;This function displays a message in a dialog box that has an OK button. The MsgBox() function can display other buttons and/or an icon in the dialog box and return a numeric value, depending on which button was clicked. Table A.3 summarizes the values for the buttons argument.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;TA B L E A . 3 : &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The Values for the Buttons Argument&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;CONSTANT VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Button Values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;vbOKOnly 0 Displays OK button only.&lt;br /&gt;VbOKCancel 1 Displays OK and Cancel buttons.&lt;br /&gt;VbAbortRetryIgnore 2 Displays Abort, Retry, and Ignore buttons.&lt;br /&gt;VbYesNoCancel 3 Displays Yes, No, and Cancel buttons.&lt;br /&gt;VbYesNo 4 Displays Yes and No buttons.&lt;br /&gt;VbRetryCancel 5 Displays Retry and Cancel buttons.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Icon Values&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;VbCritical 16 Displays Critical Message icon.&lt;br /&gt;VbQuestion 32 Displays Warning Query icon.&lt;br /&gt;VbExclamation 48 Displays Warning Message icon.&lt;br /&gt;VbInformation 64 Displays Information Message icon.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Default Buttons&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;VbDefaultButton1 0 First button is default.&lt;br /&gt;VbDefaultButton2 256 Second button is default.&lt;br /&gt;VbDefaultButton3 512 Third button is default.&lt;br /&gt;VbDefaultButton4 768 Fourth button is default.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Modality&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;VbApplicationModal 0 Application modal; the user must respond to the message box before switching to any of the Forms of the current application.VbSystemModal 4096 System modal; all applications are suspended until the user responds to the message box. &lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-size:100%;color:black;"  &gt;Button values determine which buttons appear in the dialog box. Notice that you can’t choose which individual buttons to display; you can only choose groups of buttons. Icon values determine an optional icon you can display in the dialog box. These are the common icons used throughout the Windows user interface to notify the user about an unusual or exceptional event. Default Button values determine which button is the default one; pressing Enter activates this button &lt;/span&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The values 0 and 4096 determine whether the message box is modal. To combine these settings into a single value, simply add their values. Finally, the MsgBox() function returns an integer, which indicates the button&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;pressed, according to Table A.4.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;TA B L E A . 4 : &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The Values of the Buttons&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;CONSTANT VALUE DESCRIPTION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;vbOK 1 OK, vbCancel 2 Cancel, vbAbort 3 Abort, vbRetry 4 Retry&lt;br /&gt;vbIgnore 5 Ignore, vbYes 6 Yes, vbNo 7 No. To display a dialog box with the OK andCancel buttons and the Warning Message icon, add the values 1 and 48 as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;cont = MsgBox("This operation may take several minutes", 48+1);&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Your script continues with the operation if the value of &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;cont &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;is 1 (OK button), or exit.To display a dialog box with the Yes and No buttons and the Critical Message icon, add the values 4 and 16 as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;cont = MsgBox("Incomplete data. Would you like to retry?", 4 + 16);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;            &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;If cont = 6 Then // user clicked Yes&lt;br /&gt;       {prompt again}&lt;br /&gt;Else // user clicked No&lt;br /&gt;   {exit procedure}&lt;br /&gt;Endif&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;title &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;argument is the title displayed in the message box’s title bar. See the description of the InputBox() function for an explanation of the &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;helpfile &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;and &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;context &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;arguments.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;displays the length of the specified file in a message box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;FreeFile() &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Each file opened with Visual Basic must have a unique handle (a number) that is assigned to the file the moment it’s opened and is used to refer to the file in future operations. The handle is freed (that is, it becomes available to be used with another file) after its file is closed. FreeFile() returns an integer representing the next file number available for use by the Open statement. Hard-coding a file number is not considered solid programming&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;practice, so you usually call the FreeFile() function to find out the next available file number and then open the file using the value returned by the Free - File() function as follows: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;fileNum = FreeFile &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Open "myDocument.txt" For Output As #fileNum&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The actual value of the file number is unimportant as long you use the variable &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;fileNum &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;to refer to the file myDocument.txt.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Variable Type Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The following functions manipulate variables. Some functions let you determine a variable’s exact type from within your code, and a series of functions determine the general type of a variable (such as numeric, date ,and so on). In addition, three functions let you populate array elements and quickly check array bounds.&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;VarType(variable) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The VarType() function returns a value indicating the subtype of a variable, according to Table A.7.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;TA B L E A . 7 : &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The Values Returned by the VarType() Function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;CONSTANT VALUE DESCRIPTION&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;vbEmpty 0 Empty (uninitialized), vbNull 1 Null (no valid data), vbInteger 2 Integer vbLong 3 Long integer,vbSingle 4 Single-precision floating-point number,vbDouble 5 Double-precision floating-point number, vbCurrency 6 Currency value, vbDate 7 Date value, vbString 8 String, vbObject 9 Object, vbError 10 Error value, vbBoolean 11 Boolean value, vbVariant 12 Variant (used only with arrays of variants), vbDataObject 13 A data access object, vbDecimal 14 Decimal value, vbByte 17 Byte value, vbArray 8192 Array, &lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The VarType() function doesn’t return the type of an array’s elements directly. Instead, the value of the elements’ type is added to 8,192. If you pass an array of strings to the VarType() function, the return value is 8,200 (which is 8,192 + 8). &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;Array(argumentList) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;This function returns a Variant containing an array whose elements are assigned values from the &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;argumentList&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;. The &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;argumentList &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;variable is a comma-delimited list of values that are assigned to consecutive elements of the array. Omitting &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;argumentList &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;creates an array with no elements. To use it, you must redimension it with the ReDim command. The following statements create an array with the names of the days of the week:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Dim WeekDays&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;WeekDays = Array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday","Saturday", "Sunday")&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;FirstDay = WeekDays(0) "Monday"&lt;br /&gt;SecondDay = WeekDays(1)  "Tuesday"&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;The lower bound of an array created using the Array function is always 0.Notice also that the Array function &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;does not dimension the array&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;. It only assigns values to its elements.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;LBound(arrayname[, dimension]) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;This function returns the smallest subscript for the indicated dimension of an array. The &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;arrayName &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;variable is the name of the array, and &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;dimension &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;is an integer indicating the dimension whose lower bound will be returned. If &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;dimension &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;is omitted, the first dimension is assumed. The LBound() function is used with the UBound() function, which returns the largest subscript of a dimension of a given array, to determine the size of the array.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;UBound(arrayname[, dimension]) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;This function returns the largest subscript for the indicated dimension of an array. The &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;arrayName &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;variableis the name of the array, and &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;dimension &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;is an integer indicating the dimension whose upper bound will be returned. If &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;dimension &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;is omitted, the first dimension is assumed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;                      &lt;p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;To scan all the elements of a one-dimensional array, use both the LBound() and the UBound() functions. The following statements convert the elements of the string array Strings() to uppercase: &lt;/span&gt;&lt;span style="font-size:100%;"&gt;Lower = LBound(Strings) Upper = UBound(Srtings)&lt;br /&gt;For i = Lower to Upper&lt;br /&gt;   Strings(i) = Ucase(Strings(i))&lt;br /&gt;Next&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;IsArray(variable) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;This function returns True if its argument is an array. If the variable &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;Names &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;has been defined as:&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;Dim Strings(100)&lt;br /&gt;the function:&lt;br /&gt;IsArray(Strings)returns True.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;IsDate(expression) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;This function returns True if &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;expression &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;is a valid date. Use the IsDate() function to validate user data. Dates can be specified in various formats, and validating them without the help of the IsDate() function would be a task on its own. &lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;Bdate = InputBox(ÒPlease enter your birth dateÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;If IsDate(BDate) Then&lt;br /&gt;   MsgBox "Date accepted"&lt;br /&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style=";color:black;" &gt;IsEmpty(variable) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;This function returns True if the &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;i&gt;&lt;span style=";color:black;" &gt;variable &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;is empty. An empty variable hasn’t been initialized or explicitly set to Empty. After the execution of the following statements]:&lt;/span&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;numVar = 0 stringVar = ÒÓ &lt;/span&gt;&lt;span style="font-size: 10pt; color: black;"&gt;the variables &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;numVar &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;and &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;stringVar &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;are not empty because they have been initialized. If a variable has been declared with a Dim statement but not initialized or otherwise used by your program, it’s empty. This variable must be initialized before it&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;can be used; you can find out its status with the IsEmpty() function.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;IsNull(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;This function returns True if &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;is Null. ANull value is a nonvalid value and is different from an Empty value. Regular variables can’t be Null unless you assign the Null value to them. Object variables can be Null. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;IsNumeric(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;This function returns True if &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;is a valid number. Use this function to check the validity of strings containing numeric data as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;age = InputBox(ÒPlease enter your ageÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;If Not IsNumeric(age) Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;MsgBox(ÒPlease try again, this time with a valid numberÓ)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;IsObject(expression) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;This function returns a Boolean (True/False) value indicating whether &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;expression &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;represents an object variable. To find out the type of object, use the TypeName() or VarType() functions, which are described next.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;TypeName(variable_name) &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;This function returns a string that identifies the variable’s type. It’s similar to the VarType() function, only instead of returning an integer, it returns the name of the variable’s type. The variable whose type you’re examining with the TypeName function may have been declared implicitly or&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;explicitly. Suppose you declare the following variables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Dim name As String&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Dim a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;The following statements produce the results shown (you can issue the statements in the Debug window and watch the values they return in the same window): &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Print TypeName(name)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;String&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Print TypeName(a)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Empty&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;a = ÒIÕm a stringÓ&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Print TypeName(a)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;String&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;a = #5/11/97#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Print TypeName(a)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Date&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Print TypeName(b)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Empty&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Notice that the variable &lt;/span&gt;&lt;i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;b, &lt;/span&gt;&lt;/i&gt;&lt;span style="font-size: 10pt; color: black;"&gt;which wasn’t declared, is Empty, but not Null. You must set a variable to Null from within your code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;Variable Type Conversion Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;These functions convert their numeric argument to the corresponding type. With the introduction of the Variant data type, these functions are of little use. You can use them to document your code and show that the result of an operation should be of the particular type, but keep in mind that all operands in an arithmetic operation are first converted to double precision numbers for the greatest possible accuracy. Table A.8 lists the Variable Type Conversion functions and describes what they do.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;TA B L E A . 8 : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;The Variable Type Conversion Functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;FUNCTION WHAT IT DOES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;CBool(expression) Converts its argument to Boolean (True/False) type; evaluates to True if expression evaluates to any nonzero value. CByte(expression) Converts its argument to Byte type.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;CCur(expression) Converts its argument to Currency type. CDate(expression) Converts its argument to Date type. CDec(expression) Converts its argument to Decimal type. CDbl(expression) Converts its argument to Double type. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;TA B L E A . 8 C O N T I N U E D : &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;The Variable Type Conversion Functions &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;FUNCTION WHAT IT DOES&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;CInt(expression) Converts its argument to Integer type. CLng(expression) Converts its argument to Long type. CSng(expression) Converts its argument to Single type. CStr(expression) Converts its argument to String type. CVar(expression) Converts its argument to Variant type. Numeric &lt;span style=""&gt; &lt;/span&gt;expressions are converted to doubles, and alphanumeric expressions are converted to strings. &lt;/span&gt;&lt;b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;CVErr() &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 10pt; color: black;"&gt;This function accepts as an argument a numeric value (which is an error number) and returns a variant of Error type containing the specified error number. The CVErr() function does not generate a runtime error. It can be the return value of a function, which may return a result (if no error occurred), or it can be an error&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-size:100%;"&gt;&lt;span style="font-size: 10pt; color: black;"&gt;object if something went wrong during its execution. See Chapter 3 for more information on using this function and for some examples.&lt;/span&gt;&lt;/span&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-5000259802385003490?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/5000259802385003490/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/06/visual-basic-dictionary-1.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/5000259802385003490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/5000259802385003490'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/06/visual-basic-dictionary-1.html' title='Visual Basic Dictionary 1'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-7518349660601605605</id><published>2008-06-13T23:13:00.000-07:00</published><updated>2008-06-14T00:15:54.042-07:00</updated><title type='text'>BBM naik</title><content type='html'>&lt;div  style="text-align: justify;font-family:courier new;"&gt;Harga BBM di Negeri tercinta meroket, dari berita "harga  BBM naik = harga keperluan yang lain naik". Hal ini membuat rakyat &lt;span style="font-style: italic;"&gt;kecil&lt;/span&gt; makin merana, kemiskinan ada dimana-mana, kejahatan makin merajalela.&lt;br /&gt;&lt;br /&gt;Saudara ku sebangsa dan setanah air, &lt;span style="font-weight: bold;"&gt;Tiada masalah tanpa solusi, &lt;/span&gt;begitu kira-kira kata yang tepat. Karena rumus nya adalah masalah adalah modal untuk mendapatkan kesuksesan. Kemiskinan adalah modal menjadi kaya.&lt;br /&gt;&lt;br /&gt;Dengan membuka mata, banyak sekali peluang yang ada. tinggal pilih!! kita pengen yang mana..&lt;br /&gt;klik&lt;a href="http://www.bikinduit.com/ref=3purnomo"&gt; disini&lt;/a&gt; untuk membuka wawasan peluang usaha.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://bikinduit.com/?ref=3purnomo"&gt; &lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://bikinduit.com/?ref=3purnomo"&gt;&lt;img src="http://www.bikinduit.com/b/ban6.gif" border="1" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-7518349660601605605?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/7518349660601605605/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/06/bbm-naik.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/7518349660601605605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/7518349660601605605'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/06/bbm-naik.html' title='BBM naik'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-604032532126097703.post-7993829031083042488</id><published>2008-06-13T22:38:00.000-07:00</published><updated>2008-06-13T23:04:49.390-07:00</updated><title type='text'>Selamat pagi Indonesia</title><content type='html'>&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:courier new;"&gt;    Kata itu selalu terucap dalam setiap aku terbangun dari tidur. Matahari pagi yang hangat mengusap sisi pipi hingga membuka mata, mata hati dan mata rantai kehidupan baru.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    Sadar atau tidak sadar Indonesia ku seperti terlelap dalam mimpi, mimpi menjadi boneka yang manis yang dengan semena-mena di main-main kan oleh para adidaya.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    Bangun, bangun lah Indonesia ku, &lt;span style="font-weight: bold;"&gt;Engkau&lt;/span&gt;  masih &lt;span style="font-weight: bold;"&gt;Bhineka Tunggal Ika, Engkau &lt;/span&gt;masih &lt;span style="font-weight: bold;"&gt;Gemah Ripah Loh Jinawi&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;dan Engkau &lt;/span&gt;masih punya&lt;span style="font-weight: bold;"&gt; Harga diri.Walau matahari terbit dari ufuk barat Engkau &lt;/span&gt;tetap &lt;span style="font-weight: bold;"&gt;INDONESIA&lt;/span&gt; ku.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/604032532126097703-7993829031083042488?l=3purnomo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3purnomo.blogspot.com/feeds/7993829031083042488/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://3purnomo.blogspot.com/2008/06/selamat-pagi-indonesia.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/7993829031083042488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/604032532126097703/posts/default/7993829031083042488'/><link rel='alternate' type='text/html' href='http://3purnomo.blogspot.com/2008/06/selamat-pagi-indonesia.html' title='Selamat pagi Indonesia'/><author><name>Admin</name><uri>http://www.blogger.com/profile/16755610778901553943</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_kLVx9sNrgKo/SFN8MEkcl7I/AAAAAAAAABo/h2aUf0rPbm8/S220/jam.jpg'/></author><thr:total>0</thr:total></entry></feed>
