Delphi Data Types

http://docwiki.embarcadero.com/RADStudio/XE6/en/Delphi_Data_Types

 

Integer Data Types

TypeDescriptionPointer
Byte8-bit unsigned integerPByte
ShortInt8-bit signed integerPShortInt
Word16-bit unsigned integerPWord
SmallInt16-bit signed integerPSmallInt
Cardinal32-bit unsigned integerPCardinal
LongWord32-bit unsigned integerPLongWord
DWord32-bit unsigned integerPLongWord
Integer32-bit signed integerPInteger
LongInt32-bit signed integerPLongint
UInt6464-bit unsigned integerPUInt64
Int6464-bit signed integerPInt64
NativeUInt64-bit or 32-bit platform-dependent unsigned integerPNativeUInt
NativeInt64-bit or 32-bit platform-dependent signed integerPNativeInt

Floating-point Data Types

TypeDescriptionPointerRecord
SingleSingle precision floating-point value (4 bytes)PSingleTSingleRec
DoubleDouble precision floating-point value (8 bytes)PDoubleTDoubleRec
ExtendedExtended precision floating-point value (10 bytes on Win32, but 8 bytes on Win64) 
See page about multi-device applications.
PExtendedTExtended80Rec
RealAlias of DoubleN/AN/A

String and Character Data Types

TypeDescriptionPointer
AnsiCharANSI characterPAnsiChar
CharWide character (16-bit)PChar
WideChar16-bit characterPWideChar
AnsiStringRepresents a dynamically allocated ANSI string whose maximum length is limited only by available memory.PAnsiString
RawByteStringUse as a "codepage-agnostic" parameter to a method or function, or as a variable type to store BLOB data.PRawByteString
UnicodeStringUnicode stringPUnicodeString
StringAlias for UnicodeStringPString
ShortStringA string of maximum 255 charactersPShortString
WideStringA string of 16-bit charactersPWideString

File Data Types

TypeDescriptionPointer
FileFile descriptor 
TextFileTextText file descriptor 

Boolean Data Types

TypeDescriptionPointer
BooleanRepresents a logical value (true or false).PBoolean
ByteBoolRepresents an 8-bit logical value. 
WordBoolRepresents a 16-bit logical value.PWordBool
LongBoolRepresents a 32-bit logical value.PLongBool

 

Other Data Types

 

TypeDescriptionPointer
ArrayRepresents an indexed collection of elements of the same type. 
RecordRepresents a heterogeneous set of elements. 
VariantRepresents values that can change type at run time.PVariant
PointerRepresents a pointer to data of any type.PPointer
CurrencyA fixed-point data type used to hold monetary values.PCurrency

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值