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.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Addr

Returns a pointer to a specified object.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Append

Prepares an existing file for adding text to the end.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Assert

Tests whether a Boolean expression is true.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Assign

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Assigned

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.AssignFile

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.AtomicCmpExchange

AtomicCmpExchange is used for comparing and exchanging memory values.

Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.AtomicDecrement

AtomicDecrement is used for decrementing memory values.

Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.AtomicExchange

AtomicExchange is used for exchanging memory values.

Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.AtomicIncrement

AtomicIncrement is used for incrementing memory values.

Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.BlockRead

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.BlockWrite

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Break

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.BuiltInArcTan

Calculates the arctangent of a given number.

Allowed.png
Allowed.png

System.BuiltInArcTan2

Calculates the arctangent angle and quadrant of a given number.

Allowed.png
Allowed.png

System.BuiltInCos

Calculates the cosine of an angle.

Allowed.png
Allowed.png

System.BuiltInLn

Calculates the natural logarithm of a real expression.

Allowed.png
Allowed.png

System.BuiltInLnXPlus1

Calculates the natural logarithm of (X+1).

Allowed.png
Allowed.png

System.BuiltInLog10

Calculates log base 10.

Allowed.png
Allowed.png

System.BuiltInLog2

Calculates log base 2.

Allowed.png
Allowed.png

System.BuiltInSin

Calculates the sine of the angle.

Allowed.png
Allowed.png

System.BuiltInSqrt

Calculates the square root of X.

Allowed.png
Allowed.png

System.BuiltInTan

Calculates the tangent of X.

Allowed.png
Allowed.png

System.Chr

Returns the character for a specified ASCII value.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Close

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.CloseFile

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Concat

Concatenates two or more strings into one.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Continue

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Copy

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Dec

Decrements a variable by 1 or N.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Delete

Removes a substring from a string.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Dispose

Releases memory allocated for a dynamic variable.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Eof

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Eoln

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Erase

Deletes an external file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Exclude

Removes an element from a Delphi set.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Exit

Exits from the current procedure.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Fail

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.FilePos

Returns the current file position.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.FileSize

Returns the number of records in a file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.FillChar

Fills contiguous bytes with a specified value.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Finalize

Uninitializes a dynamically allocated variable.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Flush

Empties the buffer of a text file opened for output.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.FreeMem

FreeMem frees a memory block.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.GetDir

Returns the current directory.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.GetMem

GetMem allocates a memory block.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Halt

Initiates abnormal termination of a program.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Hi

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.High

Returns the highest value in the range of an argument.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Inc

Increments an ordinal value by one or N.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Include

Adds an element to a Delphi set.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Initialize

Initializes a dynamically allocated variable.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Insert

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Length

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Lo

Returns the low order Byte of argument X.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Low

Returns the lowest value in a range.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.MemoryBarrier

Enforces an ordering constraint on memory operations.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.MulDivInt64

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.New

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Odd

Returns true if argument is an odd number.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Ord

Returns the ordinal value of an ordinal-type expression.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Pi

Returns 3.1415926535897932385.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Pred

Returns the predecessor of the argument.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Ptr

Converts a specified address to a pointer.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Read

Read reads data from a file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Readln

Reads a line of text from a file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.ReallocMem

ReallocMem reallocates a memory block.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Rename

Changes the name of an external file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Reset

Opens an existing file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Rewrite

Creates a new file and opens it.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Round

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.RunError

Stops execution and generates a runtime error.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Seek

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.SeekEof

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.SeekEoln

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.SetLength

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.SetString

Sets the contents and length of the given string.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.SetTextBuf

Assigns an I/O buffer to a text file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.SizeOf

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Slice

Returns a sub-section of an array.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Sqr

Returns the square of a number.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Str

Formats a string and returns it to a variable.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Succ

Returns the successor of an argument.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Swap

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Trunc

Truncates a real number to an integer.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Truncate

Deletes all the records after the current file position.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.TypeHandle

Returns the RTTI information for a given type.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.TypeInfo

Returns the RTTI information for a given type.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.TypeOf

Deprecated routine.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Val

Converts a string to a numeric representation.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.VarArrayRedim

Resizes a Variant array.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.VarCast

Converts a variant to specified type.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.VarClear

Empties a Variant so that it is unassigned.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.VarCopy

Copies a Variant to another Variant.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Write

Writes to either a typed file or a text file.

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

System.Writeln

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

Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png
Allowed.png

See Also

Personal tools
In other languages
Previous Versions
Assistance