Word Document Properties


Part II: Learning the Ropes



Download 8,82 Mb.
Pdf ko'rish
bet83/207
Sana16.03.2022
Hajmi8,82 Mb.
#496217
1   ...   79   80   81   82   83   84   85   86   ...   207
Bog'liq
VBA For Dummies 5th Ed.pdf ( PDFDrive )

Part II: Learning the Ropes 
09_046500 ch04.qxp 12/5/06 5:54 PM Page 86


Using character codes
Strings can contain a number of elements. In previous examples, I show you
strings that contain control character constants such as 
vbCrLf
. This con-
stant actually contains two control characters: a carriage return and a line
feed. The carriage return sends the cursor back to the beginning of the line;
the line feed places the cursor on the next line. The result of using both con-
trol characters together is the same as pressing Enter on the keyboard.
Strings can also use a special function, 
Chr
, to create special characters. You
can combine this function with the Character Map utility (normally available
on the Start

Programs

Accessories menu) to produce any character that
you need for your program. Figure 4-2 shows a typical Character Map display.
(Vista doesn’t include Character Map in the list of applications. To access
Character Map in Vista, choose Start

Run. Type 
Charmap
in the Open field
of the Run dialog box and click OK.)
When you hover the mouse over a character, the balloon help displays the
Unicode character number in hexadecimal or base 16 (see the upcoming
“Defining hex and octal values” section for details). Selecting the character
displays the Unicode number in the lower-left corner of the Character Map
dialog box and displays the character in a larger size. Listing 4-3 shows the
Chr
function in use.
Listing 4-3
Creating Special Characters
Public Sub ShowCharacter()
‘ Declare the string.
Dim MyChar As String
(continued)
Figure 4-2:
Character
Map dis-
plays all the
printable
characters
available 
for a
Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   79   80   81   82   83   84   85   86   ...   207




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish