Constant Drive Type constant
You can use these constants only if your project has an explicit reference to the corresponding type library that contains the constants definitions.
Constant Value Description Unknown0 cannot determine the drive type. The Removable1 drive has removable media. Includes all floppy disk drives and many other types of storage devices. The FIXED2 Drive has fixed media (cannot be deleted). Includes all hard drives that can be removed from the hard drive. Remote3 Network Drive. Include drives that can be shared anywhere on the network. The CDROM4 drive is a CD-ROM. Includes a read-only CD-ROM and a writable CD-ROM. RAMDisk5
A drive is a random access memory (RAM) on the local computer that works as if it were a disk drive.
File attribute Constants
You can use these constants only if your project has an explicit reference to the corresponding type library that contains the constants definitions.
Constant numeric description Normal0 normal file. No properties are set. ReadOnly1 read-only files. property is readable/writable. Hidden2 hidden files. property is readable/writable. SYSTEM4 system files. property is readable/writable. Volume8 Disk drive volume label. property is read-only. Directory16 folder or directory. property is read-only. ARCHIVE32 files that have changed since the last backup. property is readable/writable. Alias64 links or shortcuts. property is read-only. Compressed128 compressed files. property is read-only.
File input/Output constants
You can use these constants only if your project has an explicit reference to the corresponding type library that contains the constants definitions.
Constant Value Description ForReading1 open file for read-only operation. You cannot write to a file. ForWriting2 open files for write operations. If a file with the same file name exists, the original contents of the file are overwritten. ForAppending8 opens the file and writes to the end of the file.
IMESTATUS constant
You can use the following constants anywhere in your code in place of the actual values.
The constants of the Japanese region are as follows:
Constant Value Description VbIMEModeNoControl0 does not have an IME installed (default) VBIMEMODEON1 open IMEvbIMEModeOff2 shutdown IMEvbIMEModeDisable3 Invalid IMEvbIMEModeHiragana4 Full width Hiragana mode vbIMEModeKatakana5 Full width Katakana mode vbIMEModeKatakanaHalf6 half width Katakana Pattern VBIMEMODEALPHAFULL7 Full Width alphanumeric mode
VBIMEMODEALPHA8 Half width alphanumeric mode
The constants of the Korean region are as follows:
Constant Value Description vbIMEModeAlphaFull7 full width alphanumeric mode vbIMEModeAlpha8 half width alphanumeric mode vbIMEModeHangulFull9 full width Hangul Mode vbIMEModeHangul10 half width Hangul mode
The constant values in the Chinese area are as follows:
Constant Value Description VbIMEModeNoControl0 does not have an IME installed (default) Vbimemodeon1ime open vbimemodeoff2ime off
KEYCODE constant
You can replace the actual values anywhere in your code with the following constants:
The following constants are defined by the type library in Visual Basic for applications, and can be used to replace the actual value anywhere in the code:
The constant equals the description VBCRLFCHR + Chr (10) Carriage return is combined with the newline character vbcrchr (13) Carriage return VBLFCHR (10) newline character vbnewlinechr (a) + CHR (a) or, on the Macintosh, CHR ( 13 A new line character specified by the platform; A string that applies to the current platform VBNULLCHARCHR (0) value of 0 vbNullString is used to invoke an external procedure; A string with a length of zero ("") Different vbObjectError-2147221504 user-defined error numbers should be greater than this value, for example:
Err.Raise number = vbObjectError + 1000vbTabChr (9) Tab. VBBACKCHR (8) BACKSPACE character VBFORMFEEDCHR (12) does not work in Microsoft Windows or on the Macintosh VBVERTICALTABCHR (11) at Microsoft or on the Ma Cintosh does not work in Windows
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.