Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə206/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   202   203   204   205   206   207   208   209   ...   294
DelphiLanguageGuide

Other standard routines
Procedure or function Description
Addr
Returns a pointer to a specified object.
AllocMem
Allocates a memory block and initializes each byte to zero.
ArcTan
Calculates the arctangent of the given number.
Assert
Raises an exception if the passed expression does not evaluate to true.
Assigned
Tests for a nil (unassigned) pointer or procedural variable.
Beep
Generates a standard beep.
Break
Causes control to exit a for, while, or repeat statement.
ByteToCharIndex
Returns the position of the character containing a specified byte in a string.
Chr
Returns the character for a specified integer value.
Close
Closes a file.
CompareMem
Performs a binary comparison of two memory images.
CompareStr
Compares strings case sensitively.
CompareText
Compares strings by ordinal value and is not case sensitive.
Continue
Returns control to the next iteration of for, while, or repeat statements.
Copy
Returns a substring of a string or a segment of a dynamic array.
Cos
Calculates the cosine of an angle.
CurrToStr
Converts a currency variable to a string.
Date
Returns the current date.
DateTimeToStr
Converts a variable of type TDateTime to a string.
DateToStr
Converts a variable of type TDateTime to a string.
Dec
Decrements an ordinal variable or a typed pointer variable.
Dispose
Releases dynamically allocated variable memory.
ExceptAddr
Returns the address at which the current exception was raised.
Exit
Exits from the current procedure.
Exp
Calculates the exponential of X.
FillChar
Fills contiguous bytes with a specified value.
175


Finalize
Uninitializes a dynamically allocated variable.
FloatToStr
Converts a floating point value to a string.
FloatToStrF
Converts a floating point value to a string, using specified format.
FmtLoadStr
Returns formatted output using a resourced format string.
FmtStr
Assembles a formatted string from a series of arrays.
Format
Assembles a string from a format string and a series of arrays.
FormatDateTime
Formats a date-and-time value.
FormatFloat
Formats a floating point value.
FreeMem
Releases allocated memory.
GetMem
Allocates dynamic memory and a pointer to the address of the block.
Halt
Initiates abnormal termination of a program.
Hi
Returns the high-order byte of an expression as an unsigned value.
High
Returns the highest value in the range of a type, array, or string.
Inc
Increments an ordinal variable or a typed pointer variable.
Initialize
Initializes a dynamically allocated variable.
Insert
Inserts a substring at a specified point in a string.
Int
Returns the integer part of a real number.
IntToStr
Converts an integer to a string.
Length
Returns the length of a string or array.
Lo
Returns the low-order byte of an expression as an unsigned value.
Low
Returns the lowest value in the range of a type, array, or string.
LowerCase
Converts an ASCII string to lowercase.
MaxIntValue
Returns the largest signed value in an integer array.
MaxValue
Returns the largest signed value in an array.
MinIntValue
Returns the smallest signed value in an integer array.
MinValue
Returns smallest signed value in an array.
New
Creates a dynamic allocated variable memory and references it with a specified pointer.
Now
Returns the current date and time.
Ord
Returns the ordinal integer value of an ordinal-type expression.
Pos
Returns the index of the first single-byte character of a specified substring in a string.
Pred
Returns the predecessor of an ordinal value.
Ptr
Converts a value to a pointer.
Random
Generates random numbers within a specified range.
ReallocMem
Reallocates a dynamically allocatable memory.
Round
Returns the value of a real rounded to the nearest whole number.
SetLength
Sets the dynamic length of a string variable or array.
SetString
Sets the contents and length of the given string.
ShowException
Displays an exception message with its address.
176


ShowMessage
Displays a message box with an unformatted string and an OK button.
ShowMessageFmt
Displays a message box with a formatted string and an OK button.
Sin
Returns the sine of an angle in radians.
SizeOf
Returns the number of bytes occupied by a variable or type.
Sqr
Returns the square of a number.
Sqrt
Returns the square root of a number.
Str
Converts an integer or real number into a string.
StrToCurr
Converts a string to a currency value.
StrToDate
Converts a string to a date format (TDateTime).
StrToDateTime
Converts a string to a TDateTime.
StrToFloat
Converts a string to a floating-point value.
StrToInt
Converts a string to an integer.
StrToTime
Converts a string to a time format (TDateTime).
StrUpper
Returns an ASCII string in upper case.
Succ
Returns the successor of an ordinal value.
Sum
Returns the sum of the elements from an array.
Time
Returns the current time.
TimeToStr
Converts a variable of type TDateTime to a string.
Trunc
Truncates a real number to an integer.
UniqueString
Ensures that a string has only one reference. (The string may be copied to produce a single reference.)
UpCase
Converts a character to uppercase.
UpperCase
Returns a string in uppercase.
VarArrayCreate
Creates a variant array.
VarArrayDimCount
Returns number of dimensions of a variant array.
VarArrayHighBound
Returns high bound for a dimension in a variant array.
VarArrayLock
Locks a variant array and returns a pointer to the data.
VarArrayLowBound
Returns the low bound of a dimension in a variant array.
VarArrayOf
Creates and fills a one-dimensional variant array.
VarArrayRedim
Resizes a variant array.
VarArrayRef
Returns a reference to the passed variant array.
VarArrayUnlock
Unlocks a variant array.
VarAsType
Converts a variant to specified type.
VarCast
Converts a variant to a specified type, storing the result in a variable.
VarClear
Clears a variant.
VarCopy
Copies a variant.
VarToStr
Converts variant to string.
VarType
Returns type code of specified variant.
177



Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   202   203   204   205   206   207   208   209   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin