Show: Delphi C++
Display Preferences

Delphi Intrinsic Routines

From RAD Studio
Jump to: navigation, search

Go Up to API Categories Index

This topic lists Delphi-only intrinsic routines exposed by the System unit. These intrinsic routines are actually handled by the compiler rather than the run-time library. The table also specifies which compiler support each function

Routine Description DCC32 DCC64 DCCOSX DCCAARM DCCIOSARM DCCIOSARM64 DCCIOS32

System.Abs

Returns an absolute value.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Addr

Returns a pointer to a specified object.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Append

Prepares an existing file for adding text to the end.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Assert

Tests whether a Boolean expression is true.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Assign

Associates the name of an external file with a file variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Assigned

Tests for a nil (unassigned) pointer or procedural variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.AssignFile

Associates the name of an external file with a file variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.AtomicCmpExchange

AtomicCmpExchange is used for comparing and exchanging memory values.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.AtomicDecrement

AtomicDecrement is used for decrementing memory values.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.AtomicExchange

AtomicExchange is used for exchanging memory values.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.AtomicIncrement

AtomicIncrement is used for incrementing memory values.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.BlockRead

Reads one or more records from an open file into a variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.BlockWrite

Writes one or more records from a variable to an open file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Break

Causes the flow of control to exit a for, while, or repeat statement.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.BuiltInArcTan

Calculates the arctangent of a given number.

Checkmark.svg
Checkmark.svg

System.BuiltInArcTan2

Calculates the arctangent angle and quadrant of a given number.

Checkmark.svg
Checkmark.svg

System.BuiltInCos

Calculates the cosine of an angle.

Checkmark.svg
Checkmark.svg

System.BuiltInLn

Calculates the natural logarithm of a real expression.

Checkmark.svg
Checkmark.svg

System.BuiltInLnXPlus1

Calculates the natural logarithm of (X+1).

Checkmark.svg
Checkmark.svg

System.BuiltInLog10

Calculates log base 10.

Checkmark.svg
Checkmark.svg

System.BuiltInLog2

Calculates log base 2.

Checkmark.svg
Checkmark.svg

System.BuiltInSin

Calculates the sine of the angle.

Checkmark.svg
Checkmark.svg

System.BuiltInSqrt

Calculates the square root of X.

Checkmark.svg
Checkmark.svg

System.BuiltInTan

Calculates the tangent of X.

Checkmark.svg
Checkmark.svg

System.Chr

Returns the character for a specified ASCII value.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Close

Terminates the association between a file variable and an external file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.CloseFile

Terminates the association between file variable and an external disk file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Concat

Concatenates two or more strings into one.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Continue

Allows the flow of control to proceed to the next iteration of for, while, or repeat statements.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Copy

Returns a substring of a string or a segment of a dynamic array.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Dec

Decrements a variable by 1 or N.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Delete

Removes a substring from a string.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Dispose

Releases memory allocated for a dynamic variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Eof

Tests whether the file position is at the end of a file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Eoln

Tests whether the file pointer is at the end of a line.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Erase

Deletes an external file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Exclude

Removes an element from a Delphi set.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Exit

Exits from the current procedure.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Fail

Cancels the construction of an object (Turbo Pascal object model).

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.FilePos

Returns the current file position.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.FileSize

Returns the number of records in a file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.FillChar

Fills contiguous bytes with a specified value.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Finalize

Uninitializes a dynamically allocated variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Flush

Empties the buffer of a text file opened for output.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.FreeMem

FreeMem frees a memory block.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.GetDir

Returns the current directory.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.GetMem

GetMem allocates a memory block.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Halt

Initiates abnormal termination of a program.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Hi

Returns the high-order byte of X as an unsigned value.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.High

Returns the highest value in the range of an argument.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Inc

Increments an ordinal value by one or N.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Include

Adds an element to a Delphi set.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Initialize

Initializes a dynamically allocated variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Insert

Inserts a substring into a string beginning at a specified point.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Length

Returns the number of characters in a string or elements in an array.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Lo

Returns the low order Byte of argument X.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Low

Returns the lowest value in a range.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.MemoryBarrier

Enforces an ordering constraint on memory operations.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.MulDivInt64

Returns the value of this expression: Int64((Int128(AValue) * Int128(AMul)) div Int128(ADiv)).

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.New

Creates a new dynamic variable and sets P to point to it.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Odd

Returns true if argument is an odd number.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Ord

Returns the ordinal value of an ordinal-type expression.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Pi

Returns 3.1415926535897932385.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Pred

Returns the predecessor of the argument.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Ptr

Converts a specified address to a pointer.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Read

Read reads data from a file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Readln

Reads a line of text from a file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.ReallocMem

ReallocMem reallocates a memory block.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Rename

Changes the name of an external file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Reset

Opens an existing file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Rewrite

Creates a new file and opens it.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Round

Returns the value of X rounded to the nearest whole number.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.RunError

Stops execution and generates a runtime error.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Seek

Moves the current position of a file to a specified component.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.SeekEof

Returns the end-of-file status of a file, ignoring whitespace.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.SeekEoln

Returns the end-of-line status of a file, ignoring whitespace.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.SetLength

Sets the length of a string or dynamic-array variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.SetString

Sets the contents and length of the given string.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.SetTextBuf

Assigns an I/O buffer to a text file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.SizeOf

Returns the number of bytes occupied by a variable or type.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Slice

Returns a sub-section of an array.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Sqr

Returns the square of a number.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Str

Formats a string and returns it to a variable.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Succ

Returns the successor of an argument.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Swap

Exchanges high order byte with the low order byte of an integer or word.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Trunc

Truncates a real number to an integer.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Truncate

Deletes all the records after the current file position.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.TypeHandle

Returns the RTTI information for a given type.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.TypeInfo

Returns the RTTI information for a given type.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.TypeOf

Deprecated routine.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Val

Converts a string to a numeric representation.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.VarArrayRedim

Resizes a Variant array.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.VarCast

Converts a variant to specified type.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.VarClear

Empties a Variant so that it is unassigned.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.VarCopy

Copies a Variant to another Variant.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Write

Writes to either a typed file or a text file.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

System.Writeln

Writes to a text file and adds an end-of-line marker.

Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg
Checkmark.svg

See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance