Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Who can give me some commonly used strings of vbs?
Who can give me some commonly used strings of vbs?
These are vb constants. Here are some. You can search online yourself.

Because these constants are set in VBScript, you don't have to define them before applying them. You can apply them anywhere in your code to indicate descriptive values.

Constant value description

VbBlack & ampH00 Black

VbRed & ampHFF red

VbGreen & ampHFF00 green

VbYellow & yellow

VbBlue & ampHFF0000 Blue

VbMagenta & ampHFF00FF purple

Vbcian & blue-green

Vbwhite & white

These constants are established in VBScript, so you don't have to define them when you use them. You can use them anywhere in your code to represent explanatory values.

Constant value description

VbBinaryCompare 0 performs a binary comparison.

VbTextCompare 1 performs a text comparison.

Because these constants are established in VBScript, you don't have to define them before using them. You can use them anywhere in your code to represent explanatory values.

Constant value description

VbSunday 1 Sunday

VB Monday 2 Monday

VB Tuesday 3 Tuesday

Wednesday

VB Thursday, Thursday, 5th

Friday

VB Saturday Saturday 7th Saturday

VbUseSystemDayOfWeek 0 is defined by system settings. What day is the first day of the week?

VbFirstJan 1 1 Use the week containing 1 (default).

VbFirstFourDays 2 uses the first week of the New Year which contains at least four days.

VbFirstFullWeek 3 is used in the first whole week of the year.

Because these constants are established in VBScript, you don't have to define them before applying them. You can use them anywhere in your code to represent explanatory values.

Constant value description

VbGeneralDate 0 displays the date and/or time. For real numbers, display the date and time. If there is no decimal part, only the date is displayed. If there is no integer part, only the time is displayed. The display of date and time is determined by the system settings.

Vbvlongdate 1 Displays the date in the long date format specified by the regional settings in your computer.

VbShortDate 2 displays the date in the short date format specified by the regional settings in your computer.

VbLongTime 3 displays the time in the long time format specified by the regional settings in the computer.

VbShortTime 4 displays the time in a short time format, which is specified by the regional settings in your computer.

Because this constant is established in VBScript, it is not necessary to define it before using it. You can use it anywhere in your code to represent descriptive values.

Constant value description

The VBObjectError-2147221504 custom error number should be greater than this value, for example,

Uh ... Promotion number = vbObjectError+1000

The following constants are used with the MsgBox function to identify the buttons and icons that appear in the message box and specify the default buttons. In addition, you can specify the style of the message box. Because these constants are established in VBScript, you don't have to define them before using them. You can use them anywhere in your code to represent descriptive values.

Constant value description

VbOKOnly 0 only displays the OK button.

VbOKCancel 1 Displays the OK and Cancel buttons.

VBORTRetryIgnore2 displays the terminate, retry and ignore buttons.

Vyesno Cancel 3 displays the Yes, no and Cancel buttons.

Vyesno 4 displays "Yes" and "No" buttons.

VbRetryCancel 5 displays retry and cancel buttons.

VbCritical 16 displays the "key message" icon.

VbQuestion 32 displays the Warning Query icon.

The VB exclamation mark 48 displays the warning message icon.

VbInformation 64 displays the "prompt message" icon.

The first button of vbDefaultButton 1 0 is the default button.

The second button of vbDefaultButton2 256 is the default button.

The third button of VbDefaultButton3 5 12 is the default button.

The fourth button of vbDefaultButton4 768 is the default button.

VbApplicationModal 0 application mode. The user must respond to the message box to continue working in the current application.

VbSystemModal 4096 system mode. In Win 16 system, all applications will be suspended until the user responds to the message box. In Win32 systems, this constant provides an application mode information box and is always on top of all other programs you may be running.

The following constants are used with the MsgBox function to identify the button selected by the user. These constants are allowed only if the type library contains the following constant definitions and the type library has been explicitly referenced in the engineering file. For VBScript, these constants must be explicitly declared in the code.

Constant value description

Click the vbOK 1 ok button.

Click the vbCancel 2 Cancel button.

Click the "terminate" button of vbAbort 3.

Click the "Retry" button of vbRetry 4.

Click the Ignore button of vbIgnore 5.

Click the vbYes 6 Yes button.

Click the vbNo 7 No button.

Because these constants are established in VBScript, you don't have to define them before using them. You can use them anywhere in your code to represent descriptive values.

Constant value description

VbCr Chr( 13) Enter.

vbCrLf Chr( 13); Chr( 10) returns to a new line.

VbFormFeed Chr( 12) page break; Not applicable to Microsoft Windows.

Vbfchr (10) newline.

VbNewLine Chr( 13) a new line character specified by Chr( 10) or Chr( 10) platform; Suitable for any platform.

Character with vbNullChar Chr(0) value of 0.

A string with vbNullString value of 0 is different from a zero-length string (""); Used to call external procedures.

Vtabchr (9) horizontal tab.

Vertical label of VBVerticaltab CHR (11); Not applicable to Microsoft Windows.

These constants are established in VBScript, so you don't have to define them before using them. You can use them anywhere in your code to represent descriptive values.

Constant value description

VbUseDefault -2 uses the default value in the initial setup of the computer.

vbTrue - 1 True

vbFalse 0 False

These constants are allowed only if the type library contains the following constant definitions and are explicitly referenced in the project file. For VBScript, these constants must be explicitly declared in the code.

Constant value description

Vempty0 is not initialized (default).

VbNull 1 does not contain any valid data.

VbInteger 2 integer subtype

VbLong 3 long integer subtype

VbSingle 4 single precision subtype

Vbduble 5 double-precision subtype

VbCurrency 6 currency subtype

VbDate 7 date subtype

VbString 8 string subtype

VbObject 9 object

VbError 10 error subtype

VbBoolean 1 1 Boolean subtype

VbVariant 12 Variant (only applicable to variable arrays)

VbDataObject 13 data access object

VbDecimal 14 decimal subtype

Vvbyte17 byte subtype

VbArray 8 192 array