Delphi common functions

xiaoxiao2021-03-06  73

Abort Function Causes Abandon Accident ABS (REAL) Function Absolute Function ADDEXITPROC function Add a process to the end of the runtime library End Process Table ADDR (VARIANT) function Returns the address of the specified object AdjustLineBreaks function will give a given string. Adjusting to the CR / LF Sequence Allocmem function Assigning a given size on the stack AllowGrayed property allows a grayscale to select the AnsicompareStr (S1, S2) function comparison string (case sensitive) Return> 0; = 0; <0ansiMPareText function Comparison string (in case case) ansilowercase (str) function converts characters to lowercase (8-bit ASCII characters) // LowerCase (s): 7-bit ASCII Character ANSIUPPPPERCASE (STR) function converts characters to uppercase // Uppercase s) Append function to open an existing file arctan function After the existing file arctan function, the existing file arctan function, the AssignFile function gives the file variable assigned an external file name assigned function test function or process variable is empty (file; filename: String)

The BeginThread function establishes an external box mode of the BEVELINNER attribute control box for memory management in an appropriate manner, the BEVELWIDTH Properties control box of the BEVELWIDTH Properties control box, the BEVELWIDTH Property Control box, the block width blockRead function reads one or more records to variables The blockwrite function writes one or more records from the variable BREAK command termination for, while, repeat loop statement // Continue loop From the next start Brush Property Brush BlockReadblockWrite

COS function cosine function CHANGEFILEXT function change file suffix chDIR function Change the current directory Checked property to determine the check box Check the status of the CHR function Returns the character number of the specified number ==> ASCIICLOSEFILE command Close the Open file columns property Show the column number CompareStr function comparison Character String (case sensitive) Concat function combined multiple string Continue command Continue for, while, repeat's next loop clreol () Clear the current cursor to the end of the row, CLRSCR () Clear the CRT window, cursor to the upper left corner of the window CURSORTO X, Y: Integer) Continue Cycle From the next time, Break: Interrupt loop COPY function Returns a string of a string in Sridge in Insert (SRC, S, INDEX) delete (String, INDEX, COUNT)

Date function returns the current date DateTimetOfileDate function Convert Delphi's date format DateTimetostr function to the date time format to string DateTimetostring function Transfer the date time format to string DateTstr function to convert the date format to a string DAYOFWEEK function Returns the value of the value Dec (x, n) function Decreme Decode decodedate function Decomposes the date format Decodeime function Decomposes the time format to time, minute, second, millisecond Delete function from the string delete substring deletefile command delete File DiskFree function Returns the size of the remaining disk space Disksize function Returns the CapoSe function release of the Disposable DISPOSE function Release Dynamic Variable The space DITHERBACKACKACKAND attribute in the stack DITHERBACKGROPDOWNCOUNT property The number of DonewinCRT // releases the CRT window editmask property editing mode enabled attributes whether the label rendering the state encodeDedate function combines the date-up day to the date format TryEncodedate function will be combined into the date format Encodetime function, Separation, second, millisecond synthesis is the time format Exclude (S: Set of t; i: t) // Remove the element IENDMARGIN attribute from the collection EOF function to the file tail eoln function to the file tail eoln function The end of the file end State ERASE command deletes the external file Exceptaddr function Returns the current unexpected address Exclude function Remove some element ExceptObject function from the collection Retrieve the current unexpected index EXIT command to exit Exp (X) = log from the current statement block X) Function Index Function // LN (X) // Natural logarithmic ExpandFileName function returns a string extendedSelect property that contains absolute paths, whether there is a selection mode, True, multiselect is meaning ExtractFileDir function Returns the drive and path ExtractFileExt function Return to files Suffix ExtractFilen AME function Returns the file name ExtractFilePath function Returns the path to the specified file

Fileage Function Returns the existing time fileclose command to close the specified file file name created a new file name FileDateTodateTime function Convert DOS Date format FileExists function Check if there is a FileGataTr function to return to files FilegetDate Function Returns DOS Date Time Mark FileOpen Command Opens the specified access mode Open the specified file filepos function Return to the current pointer position fileRead command to read the filesearch command from the specified file FileSearch command to search the specified file fileseek function change the file Pointer FileSetattr function setting file attribute FISETDATE function setting file DOS date Time Tag FileSize function Returns the size of the current file FileWrite Function FilleChar function FillChar function FillChar function Finding the number of FindClose commands Findfirst / FINDNEXT sequence The FindFirst command returns the specified file name and attribute search directory findnext command to the next entry FLOATTODECIMAL function to match the file name and attribute, convert the floating point number to the decimal number of FLOATTOSTOSTRF functions convert the floating point number into a string floattostr function converts floating point numbers to characters The string floattotext function converts a given floating point number into a decimal number of floattotextFmt functions converts a given floating point number into a decimal number of Flush (f) to refresh the contents of the buffer to the output text file, make sure the file is written to the FMTLOADSTR function The resource string table of the program is loaded with a series of parameters, and the result returns the font property formatted a series of parameters and returns a series of parameters formatted by parameter result. The formatdatetime function returns the date and time formatDatetime ('yyyy mmmm', mydate) in the specified format, if the FormatFLOAT function specifies the decimal part of the floating point digital FRAC function returns the decimal part of the parameter, FreeMem (p, size) The function of the function is released in the space * FRAC (X: Extended) of the dynamic variable by a given size. Xtended // Returns the fractional portion of x (123.567 => 0.567) * int (x: extended): EXTENDED / / Returns the integer portion of x (123.567 => 123.0) * Round (x: extended): int64; // Since the round Integer (123.567 => 124) * Trunc (x: extended): INT64; // Returns the integer portion of the X (123.567 => 123) GetDir Returns the current directory GetHeapStatus for the specified drive GetHeapStatus Returns the current state of the memory manager GetMEM established a specified size Dynamic variables, and point the pointer to the image glyph function button of the GetMemoryManager returning the memory manager. Gotoxxy (x, y)

The HALT stop program is executed and returned to the upper limit value of the high address bit // lo (x) high return parameter // low (x) hint property prompt information

INT returns an integer part of the parameter Include (S: Set of T; i: t) Add Element I to Set T in Sett (SRC, S, INDEX) to convert the index position INDEXHEX inserted into the SRC into sixteen Number INTOSTR converts integer to string iResult Returns the latest I / O operation Complete Status IsValidIdent test string whether the Node Items property is a valid identifier Items property The default display Node ITWINCRTITILAPYEAR (YEAR: WORD) function Return to whether it is the year Kind property Place style keypressed readkey largechange attribute maximum change value Layout Attribute Image Layout Length function Returns the dynamic length of the string LINES Property Default Display Content LN Function Natural logarithmic function LO function Return parameter low address bit LoadStr function from the application Lower Lower Low Function Returns the Character Resources LOW Function

MAX Property Max Maxavail MEMAVAILMAXLENGTH Property Maximum length MIN Property Minimal Mkdir Command Create a Subdate Directory MOVE Function From Source to Target Copy Byme MultiSelect Property Allow Several Data Items

Name Properties The name new function creates a new dynamic variable and sets a pointer variable to his newstr function to assign a new string now on the stack. NOW function Returns the current date and time.

The ODD test parameter is an odd OFS (X) onactivate event focus Move to the form to trigger the onclick event Click the Form blank area to trigger the OndblClick event Double-click the form blank area to trigger the oncluery event user attempt to close the form to trigger the onclose event form After the shutdown, I triggered the onDeactiVate event user when I first created the ONDEACTIVATE event user to switch to another application. Trigger the OnDragDrop event mouse to trigger the onDragover event. There are other controls from him to trigger the onMouseDown event. Press the mouse button. Trigger the onMouseMove event when the mouse button is triggered when the ONMOUSEUP event is triggered when the ONMOUSEMOVE event is triggered, and the OnKeyPress event is triggered when the onkeydown event is pressed when the button is pressed. When the ONKEYPRESS event is pressed, the ONKEYUP event is triggered and the onkeyup event is triggered on the keyboard. When the button is triggered on the onpaint event form, there is a new section to expose the onResize event Re-adjust Form size trigger the ONSHOW event before the form is actually displayed. The order OutlineError causes OutlineError cause OutofMemory accident.

PageIndex Property Page Index Pages Property Page Paramcount Function Returns Parameters Parameters Parameters Parameters Paramstr Functions Back to Program Paramstr Functions Returns the Specified Command Line Parameters Pen Properties PipicTure Property Return Wen Zeng Pipicture Properties Display Image PictureClosed Property Settings Closed Bitmap PictureLeaf Properties Setting Leaf Bitmap Pictureminus Properties Settings MINUS Bitmap PictureOpen Property Setting Open Bitmap PicturePlus Properties Settings Plus Bitmap POS Functions Returns the previous parameter PTR (SEG, OFS) // SEG Offs OFS After the address

The random function returns a random function randomize function to initialize the built-in random number generator read function to format files, read one file component to variables; for text files, read one or more values ​​to one or more The READLN function in the variable executes the READ process, then jumps to the file READONLY Property Read-only Properties ReallocMem function Assign a dynamic variable RENAME Function Rename External file RenameFile function Open the file reset RET function Open the existing file REWRITE function to establish and open one The new file RMDIR function deletes the empty subdirectory Round function rounds the real value RuNERROR function stop program to the READKEY SCROLLBARS Property Scroll Bob Status Seek function to move the file's current pointer to the specified component Seekeof function Return to the file File End State SeeKeoln Function Returns Row of File End State Selected Color Property Selected Color SetMemoryManager Function Settings Memory Manager Entry Point SetTextBuf Function Specifies the shape of the I / O buffer Shape property displayed SHOWEXCEPTION Function Display Accident Message and Address SIN Function Sinusoidal Function SIZEOF Function Returns the byte of the byte SmallChange Property SmallChange Property Minimum Change Value Sorted Property Allow Sort SQR Function Square SQRT Function Square Root Function STARTMARGIN Attribute Start Edge State Properties Control Current Status STR Functions Convert Numeric STRALLOC Function to The buffer StrbufSize function that is the maximum length -1 buffer string with NULL is returned to the maximum number of characters Strcat (DEST, SRC) function stored in the character buffer allocated by Stralloc to the other stroke tail and returns Merged strings, SRC Connect to DEST STRCOPY (DEST, SRC) function Copy a string to another string, SRC copy to the destStrDispose function release the string STRECOPY (DST, SRC) function on the stack to set a character String to another string and return the pointer string strord of the result string string Stropy (DST, SRC) function to copy the string of the PASCAL class to the end of the string Strend (PCHAR) function ending the string Stretch property Automatic adaptive control Size Strfmt Function Format a series of parameters Strlfmt functions format a series of parameters,

The result includes a pointer stringTowideChar function to the target buffer to convert the ANSI string to the Unicode string strlcat (DEST, SRC, MAXLEN) function to attach characters in a string to another string and return the merged character. Strous strlcopy (DST, SRC, MAXLEN) function Copy the characters in a string to another string Strlen (STR) function Returns the number of characters in the string // does not include the NULL end symbol Strmove function will be in a string Character Copy to another string Strnew function Allocated a string strPas function on the stack to convert the string of strs with NULL to a string StrDispose (PCHAR) SUCC (X) Strs (PCHAR) SUCC (X) X The STRPLCOPY function is replicated from the maximum length string of the Pascal class to the string StrPos function ended with NULL. Returns a string in another string. The first appearance of the pointer STRSCAN (STR, CHAR) function returns a pointer in the character string. Char's Last appearance Strascan (STR, CHAR) function returns a first-character pointer in the string, and the position of the first appearance of Char in the STR to convert the string to the date format The StrtodateTime function converts the string to Date / Time Format The STRTOFLOAT function converts a given string to floating point STRTOINT functions to convert a string into an integer strt DEF function to convert a string into an integer or default value. STRTOTIME function converts strings to time format Strupper functions The characters in the string are converted to the uppercase strlower function to convert the characters in the string to lowercase SUCE functions to return the high and low address bits of the SWAP function exchange parameters, high-end byte swap Strcomp (Const str1, str2: pchar): integer; Case STRICOMP (Const str1, str2: pchar): Integer; Not case sensitive comparison Strlcomp (const str1, str2: pchar; maxlen: cardinal): integer; case sensitive comparison with maximum length ratio Compared with two strings str2: pchar; maxlen: cardinal): Integer; Symptt comparison with two strings in maximum length * selectNext (activeControl, true, true); analog Tab key * SelectNext (ActiveControl, False, True); Simulated Tab

Tabs Property Tags Each of the content TabINDEX Properties Tags Index TEXT TEXTTOAT Function The text TEXTTOFLOAT function converts a string (with NULL End format) to floating point number Time function Returns the current time TIMETOSTR function converts time format to string TRIM functions Delete a space from a given string and the tail of the tail and the control character Trimleft function removes the first space from a given string and control character trimright function from a given string space and control character trunc function. Intercepted the real value to the integer value Truncate function Tracked after the current file location TRACKCURSOR scroll CRT window to make the cursor visible

UnselectedColor Attribute Unchecked Color Upcase converts characters to uppercase Uppercase to get a given string to uppercase // ANSIUPPERCASE (s) LowerCase function To get a given string to lower-write // AnsilowerCase (s)

The VAL (S, V, Code) function converts the string into an integer value, writing the S string from the first digit to V, the CODE bit non-digital VaRrayCreate function is created with a given boundary and dimension The Dimensional VarrarrayDimcount function returns the dimension of the given variant VararrayHighBound function Returns the upper bound VARARRAYLOCK function of the value of the variant of the VARARRAYLOCK function to lock the given variant array VaraylowBound function Returns the lower bound VARARRAYOF function of the unit dimension of the variable number of dimensions Returns the specified The array of variants The VARARRAYREDIM function unlocks the size of the VARARRAYUNLOCK function unlocking the specified variant array VARASTYPE function by changing the upper limit. The specified variant Varcopy function copies the specified variant to the specified variant VarformDateTime function Returns the variant of the variant VarisArray function test variant whether the variant is the array variSempty function test variant whether it is a nullvartodatetime function Conversion of a given variant into a Date Time Vartype function converts the variant into a specified type and saves his visible attribute control to the Visible Wantreturns property to True, press Enter to generate a carriage return; for false, press The lower Ctrl Enter generates the carriage return Write command to format files, write a variable into the file component; write a text file, write one or more values ​​to the file WRITELN command to execute the WRITE process, then output a line end sign widecharlentostring function ANSI string to UNICODE string WideCharLenToStrWar function UNICODE string to ANSI string variable WideCharToString function converts UNICODE string to ANSI string WideCharToStrVar function UNICODE string into a string variable WhereX WhereY ANSI cursor x Y

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

New Post(0)