delphi function reference manual
-------------------------------------------------- --------------------------------
The abort function causes unexpected handling of abandonment
abs function absolute value function
The addexitPRoc function adds a procedure to the runtime library's final procedure table.
The addr function returns the address of the specified object
The adjustlinebreaks function adjusts the line breaks of the given string to the CR/LF sequence
The align attribute positions the control in a certain part of the window
alignment property control label text position
The allocmem function allocates a block of a given size on the stack
The allowgrayed attribute allows a grayscale selection
ansicomparestr function compares strings (case sensitive)
ansicomparetext function compares strings (case insensitive)
ansilowercase function converts characters to lowercase
ansiuppercase function converts characters to uppercase
The append function opens an existing file in an appended manner
arctan function cotangent function
The assignfile function assigns an external file name to the file variable.
assigned function tests whether a function or process variable is empty
The autosize attribute automatically controls the size of the label
backgrounddi2001.jpg property background color
The beginthread function establishes a thread for memory management in an appropriate manner
bevelinner property control box inner frame mode
The outer frame mode of the bevelouter attribute control box
bevelwidth property control box outer frame width
The blockread function reads one or more records into a variable
The blockwrite function writes one or more records from a variable
borderstyle property border type
borderwidth property border width
The break command terminates for, while, and repeat loop statements
brush attribute brush
caption The content of the attribute label text
The changefileext function changes the suffix of a file
chdir function changes the current directory
The checked attribute determines the checked state of the check box
The chr function returns the character of the specified ordinal number
closefile command closes an open file
color attribute label color
The number of columns displayed by the columns attribute
comparestr function compares strings (case sensitive)
concat function combines strings
The continue command continues the next loop of for, while, repeat
The copy function returns a substring of a string
cos function cosine function
Whether the ctl3d attribute has a 3D effect
The cursor attribute is the shape after the mouse pointer is moved into it.
The date function returns the current date
The datetimetofiledate function converts the date format of Delphi to the date format of DOS
datetimetostr function converts datetime format to string
datetimetostring function converts datetime format to string
datetostr function converts date format to string
The dayofweek function returns the value of the day of the week
dec function decrements variable value
The decodedate function decomposes the date format into year, month and day
The decodetime function decomposes the time format into hours, minutes, seconds, and milliseconds
delete function deletes a substring from a string
deletefile command deletes files
The diskfree function returns the amount of remaining disk space
The disksize function returns the capacity of the specified disk
The dispose function releases the space occupied by dynamic variables
The disposestr function releases the memory space of the string in the stack
ditherbackgrounddi2001.jpg? Make the background color darker or lighter by 50%
dragcursor property The shape of the cursor when the mouse is pressed
How the dragmode attribute works
The number of displayed data items allowed by the dropdowncount attribute
editmask attribute editing mode
Whether the enabled attribute makes the label appear open
The encodedate function synthesizes the year, month and day into a date format
The encodetime function synthesizes hours, minutes, seconds, and milliseconds into time format
endmargin attribute end margin
The eof function tests whether the end of the file is reached for a typed or untyped file.
The eoln function returns the end-of-line status of a text file
erase command deletes external files
The exceptaddr function returns the address that caused the current exception.
exclude function removes some elements from a collection
exceptobject function returns the current unexpected index
The exit command immediately exits the current statement block
exp function exponential function
The expandfilename function returns a string containing the absolute path
Whether the extendedselect attribute allows selection mode to exist. When true, multiselect is meaningful.
The extractfiledir function returns the drive and path
The extractfileext function returns the suffix of the file
The extractfilename function returns the file name
The extractfilepath function returns the path of the specified file
The fileage function returns the age of the file
The fileclose command closes the specified file
The filecreate command creates a new file with the specified file name.
The filedatetodatetime function converts the date format of DOS to the date format of Delphi
The fileexists function checks whether a file exists
The filegatattr function returns the attributes of the file
The filegetdate function returns the DOS date and time stamp of the file
The fileopen command opens the specified file using the specified access mode.
The filepos function returns the current pointer position of the file
The fileread command reads from the specified file
The filesearch command searches a directory for a specified file
The fileseek function changes the file pointer
filesetattr function sets file attributes
The filesetdate function sets the DOS date and time stamp of the file
filesize function returns the size of the current file
The filewrite function performs write operations on the specified file.
The fillchar function fills a number of consecutive bytes with a specified value.
The findclose command terminates the findfirst/findnext sequence
The findfirst command searches the directory for the specified file name and attributes.
The findnext command returns the next entry that matches the file name and attributes.
floattodecimal function converts a floating point number to a decimal number
floattostrf function converts a floating point number to a string
The floattostr function converts a floating point number to a string
The floattotext function converts a given floating point number to a decimal number
floattotextfmt function converts the given floating point number to decimal number
The flush function flushes the contents of the buffer to the output text file
The fmtloadstr function loads a string from the program's resource string table.
The fmtstr function formats a series of parameters, and the result is returned as the parameter result.
font attribute sets the font
The format function formats a series of parameters and returns a pascal string
The formatbuf function formats a series of parameters
The formatdatetime function formats dates and times in a specified format
The formatfloat function specifies the floating point format
The frac function returns the fractional part of the argument
The freemem function releases the space occupied by dynamic variables according to the given size.
getdir returns the current directory of the specified drive
getheapstatus returns the current status of the memory manager
getmem creates a dynamic variable of a specified size and points the pointer there
getmemorymanager returns the entry point of the memory manager
The image on the glyph function button
halt stops program execution and returns to the operating system
hi returns the high address bit of the parameter
high returns the upper limit of the parameter
hint attribute prompt information
int returns the integer part of the parameter
include adds elements to a collection
insert inserts a substring into a string
inttohex converts an integer number to a hexadecimal number
inttostr converts an integer to a string
ioresult returns the latest i/o operation completion status
isvalidident tests whether a string is a valid identifier
The nodes displayed by default for the items attribute
kind attribute placement style
largechange The maximum change value of the attribute
layout attribute image layout
The length function returns the dynamic length of the string
The default display content of lines attribute
ln function natural logarithm function
The lo function returns the low address bit of the parameter
The loadstr function loads character resources from the application's executable file.
The lowercase function turns the given string into lowercase
The low function returns the lower limit value of the parameter
max attribute maximum value
maxlength attribute maximum length
min attribute minimum value
mkdir command creates a subdirectory
The move function copies bytes from source to destination
The multiselect attribute allows several data items to be selected at the same time
name attribute control name
The new function creates a new dynamic variable and sets a pointer variable to point to it.
The newstr function allocates a new string on the stack
now function returns the current date and time
odd tests whether the parameter is an odd number
The onactivate event is triggered when the focus moves to the form
The onclick event is triggered by clicking on a blank area of the form
ondblclick event is triggered by double-clicking a blank area of the form
onclosequery event is triggered when the user tries to close the form
onclose event is triggered after the form is closed
The oncreate event is triggered when the form is created for the first time.
ondeactivate event is triggered when the user switches to another application
The ondragdrop event is triggered when the mouse drag and drop operation ends.
The ondragover event is triggered when other controls move over it
onmousedown event is triggered when the mouse button is pressed
onmouseup event is triggered when the mouse button is released
onmousemove event is triggered when the mouse is moved
onhide event is triggered when the form is hidden
The onkeydown event is triggered when a key on the keyboard is pressed.
The onkeypress event is triggered when a single character key on the keyboard is pressed.
The onkeyup event is triggered when a key on the keyboard is released.
The onpaint event is triggered when a new part of the form is exposed.
The onresize event is triggered to resize the form.
The onshow event is triggered moments before the form is actually displayed.
ord returns the ordinal number of the ordinal class
outlinestyle property type
outofmemoryerror causes outofmemory unexpected
pageindex attribute page index
pages property page
The paramcount function returns the number of parameters passed to the program on the command line
The paramstr function returns the specified command line parameters
pen attribute brush settings
The pi function returns pi
The picture attribute displays an image
The pictureclosed attribute sets the closed bitmap
The pictureleaf attribute sets the leaf bitmap
pictureminus attribute sets minus bitmap
pictureopen attribute sets the open bitmap
pictureplus attribute sets plus bitmap
pos function searches for a substring in a string
The pred function returns the previous parameters
The random function returns a random function
The randomize function initializes the built-in random number generator with a random number.
The read function reads a file component into a variable for a formatted file;
For text files, read one or more values into one or more variables
The readln function executes the read process and then jumps to the next line of the file
readonly attribute read-only attribute
reallocmem function allocates a dynamic variable
The rename function renames an external file
The renamefile function renames a file
The reset function opens an existing file
The rewrite function creates and opens a new file
The rmdir function deletes empty subdirectories
The round function rounds real values to integer values
The runerror function stops the execution of the program
scrollbars property scroll bar status
The seek function moves the current pointer of the file to the specified component
The seekeof function returns the end-of-file status of the file.
The seekeoln function returns the end-of-line status of a file
selectedcolor attribute selected color
The setmemorymanager function sets the entry point of the memory manager
The settextbuf function specifies the i/o buffer for the text file.
The shape displayed by the shape attribute
The showexception function displays unexpected messages and addresses
sin function sine function
The sizeof function returns the number of bytes occupied by the parameter
smallchange attribute minimum change value
Whether the sorted attribute allows sorting
sqr function square function
sqrt function square root function
startmargin attribute starting edge
The current state of the state attribute control
str function converts a numeric value to a string
The stralloc function allocates a buffer of maximum length -1 to a null-terminated string.
The strbufsize function returns the maximum number of characters stored in the character buffer allocated by stralloc
The strcat function appends one string to the end of another string and returns the merged string.
The strcomp function compares two strings
The strcopy function copies one string into another string
The strdispose function releases the string on the stack
The strecopy function copies one string to another and returns a pointer to the end of the resulting string.
The stretch function returns a pointer to the end of the string
The stretch attribute automatically adapts to the size of the control
The strfmt function formats a series of parameters
The stricomp function compares two strings (case-insensitive)
The stringtowidechar function converts ansi string to unicode string
The strlcat function appends characters from one string to the end of another string and returns the combined string.
strlcomp function compares two strings with maximum length
The strlcopy function copies characters from one string to another string
The strlen function returns the number of characters in a string
The strlfmt function formats a series of parameters, and the result contains a pointer to the target buffer.
The strlicomp function compares two strings at maximum length (case-insensitive)
The strlower function converts characters in a string to lowercase
The strmove function copies characters from one string to another string
The strnew function allocates a string on the stack
The strpas function converts a null-terminated string to a pascal-like string
The strpcopy function copies a pascal-like string to a null-terminated string.
strplcopy function copies maximum length string from pascal class to null terminated string
The strpos function returns a pointer to the first occurrence of a string in another string
The strrscan function returns a pointer to the last character in a string.
The strscan function returns a pointer to the first character in a string.
strtodate function converts string to date format
The strtodatetime function converts a string to date/time format
strtofloat function converts the given string to a floating point number
The strtoint function converts a string to an integer
The strtointdef function converts a string to an integer or default value
The strtotime function converts a string to time format
The strupper function converts characters in a string to uppercase
style attribute type selection
The suce function returns the subsequent parameters
The swap function swaps the high and low address bits of parameters
The tabs attribute marks the content of each item
tabindex attribute tag index
The text displayed by the text attribute
The texttofloat function converts a string (null-terminated format) to a floating point number
The time function returns the current time
timetostr function converts time format to string
The trim function removes leading and trailing spaces and control characters from the given string.
The trimleft function removes leading spaces and control characters from the given string.
The trimright function removes trailing spaces and control characters from the given string.
The trunc function truncates real values into integer values
The truncate function truncates the contents of the current file position
unselectedcolor attribute unselected color
upcase converts characters to uppercase
uppercase turns the given string into uppercase letters
The val function converts a string to an integer value
The vararraycreate function creates a variant array with given bounds and dimensions.
The vararraydimcount function returns the dimensionality of a given variant
The vararrayhighbound function returns the upper bound of the dimension of a given variant array.
The vararraylock function locks the given variant array
The vararraylowbound function returns the lower bound of the given variant array dimension.
The vararrayof function returns the array elements of the specified variant
The vararrayredim function resizes variants by changing the upper limit
The vararrayunlock function unlocks the specified variant array
The varastype function converts a variant to a specified type
The varcase function converts a variant to a specified type and saves it
The varclear function clears the specified variant
The varcopy function copies the specified variant to the specified variant
The varformdatetime function returns a variant containing datetime
The varisarray function tests whether the variant is an array
The varisempty function tests whether the variant is unassigned
The varisnull function tests whether a variant is null
The vartodatetime function converts the given variant to a datetime
The vartype function converts a variant to a specified type and saves it
visible property visibility of the control
When the wantreturns attribute is true, pressing the Enter key generates a carriage return character;
When it is false, pressing ctrl+enter will generate a carriage return character.
The write command writes a variable to the file component for a formatted file;
For text files, write one or more values to the file
The writeln command executes the write process and then outputs an end-of-line mark.
The widecharlentostring function converts ansi string to unicode string
The widecharlentostrwar function converts a unicode string to ansi string variable
The widechartostring function converts unicode string to ansi string
The widechartostrvar function converts a unicode string to ansi string variable
Author's Blog: http://blog.csdn.net/ahlian/