List of VB functions (NewLaos Translation)

xiaoxiao2021-03-06  61

List of VB functions (NewLaos Translation)

1) Data type conversion:

a) __VBAI2STR converts a string to 8-bit (1 byte) numerical form (range between 0 to 255) or 2 bytes (range between -32, 768 to 32, 767).

b) __ VBAI4STR Turn a string into a long-integrated (4 bytes) (range from -2, 147, 483, 648 to 2, 147, 483, 647)

c) __ VBAR4STR to convert a string to a single precision single-precision floating point (4 bytes) numerical form

d) __ vbar8str to turn a string into a double precision single precision floating point (8 bytes) numerical form

e) Varcyfromstr (only VB6 library. To debug, there must be oleaut32.dll in Winice.DAT) string to derived data type

f) VarbstrFromi2 (only VB6 library. To debug, you must have oleaut32.dll in Winice.DAT) integer data to strings:

2) Data movement:

a) __vbastrcopy copies a string to memory, similar to Windows API HMemcpy

b) __vbavarcopy copies a variable value series to memory

c) __vbavarmove variable moves in memory, or copy a variable value series to memory

3) Mathematical operation:

a) __vbavaradd two variables plus

b) __vbavarsub first variable minus second variable

c) __vbavarmul two variables

d) __vbavaridiv The first variable is divided by the second variable to get an integer merchant

e) __vbavarxor two variable values ​​or operations

4) Program Design Miscellaneous:

a) __vbavarfornext This is the loop structure in the VB program, for ... next ... (loop)

b) __vbafreestr Releases the memory occupied by the string, which is wiped off the string of memory a location.

c) __vbafreeObj Releases the memory occupied by VB (a window, a dialog), which is to wipe a window in a location, a dialog

d) __vbastrvarval Get its value from the characteristics of the string

e) MultibyTetowideCha converts the data into a wide character format, and VB has to do this in processing data, and it is displayed as 7.8.7.7.8.7.8 in TRW2000.

f) RTCMSGBOX calls a message box, similar to the MessageBox / A / EXA in Windows, before this must have a push command to press the data displayed in the message box into the vertebrae

g) __vbavarcat Connect the two variables, if it is two strings, even together

h) __vbafreevar releases the memory occupied by the variable, that is, erases the variables of the memory a location.

i) __vbaobjset

j) __vbalenbstr Get the length of a string, Note: A Chinese character in VB is also 1

K) RTCINPUTBOX Displays a VB standard input window, similar to WINDOW's API getWindowText / A, GetdlgiteMtext / A

l) __vbanew calls display a dialog, similar to Windows' API Dialogbox

m) __vbanew2 call display a dialog, similar to Windows' API DialogBoxParam / A

n) RTCTRIMBSTR removes the space on the left and right sides

5) Compare function

a) __vbastrComp compare two strings, similar to Window's API LSTRCMPB) __vbastrcmp compared two strings, similar to Window's API LSTRCMP

c) __vbavartsteq compares whether the two variables are equal

D) __ VBAFPCMPCY - Compares Floating Point To Currency. sp; companies flos

6) When dynamic tracking, analyzing the algorithm, especially the function:

RTCMIDCharvar takes the corresponding characters from the string, the MID function in VB, usage MID ("string", "start position", "take a few characters")

RTCLEFTCHARVAR takes the corresponding character from the left side of the string, the usage in VB: Left ("string", "Take a few characters from the left")

RTCRightCharvar takes the corresponding character from the string, the usage in VB: Right ("string", "Several characters from the right")

__vbastrcat The operation of using the string is to strip the two characters, only one & or in VB.

__vbastrcmp string comparison, only one = or <> in VB

ASC () function takes a character's ASC value, in the disassembly, still there is a MOVSX operand

7) Abbreviation in the function:

Bool Boolean Data (True or False)

Stringer String Data String

I2 byte data or double-byte integer data byte or integer

UI2 No symbol double-byte integer data

I4 long integer data (4 bytes) long

R4 single precision floating point data (4 bytes) Single

R8 double precision floating point data (8 bytes) Double

CY (8 bytes) integer numerical form Currency

VAR variable Variant

FP floating point data type Float Point

CMP Compare Compare

Compare Compare

转载请注明原文地址:https://www.9cbs.com/read-119533.html

New Post(0)