• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

DelphiDataTypes

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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

 

Integer Data Types

Type Description Pointer
Byte 8-bit unsigned integer PByte
ShortInt 8-bit signed integer PShortInt
Word 16-bit unsigned integer PWord
SmallInt 16-bit signed integer PSmallInt
Cardinal 32-bit unsigned integer PCardinal
LongWord 32-bit unsigned integer PLongWord
DWord 32-bit unsigned integer PLongWord
Integer 32-bit signed integer PInteger
LongInt 32-bit signed integer PLongint
UInt64 64-bit unsigned integer PUInt64
Int64 64-bit signed integer PInt64
NativeUInt 64-bit or 32-bit platform-dependent unsigned integer PNativeUInt
NativeInt 64-bit or 32-bit platform-dependent signed integer PNativeInt

Floating-point Data Types

Type Description Pointer Record
Single Single precision floating-point value (4 bytes) PSingle TSingleRec
Double Double precision floating-point value (8 bytes) PDouble TDoubleRec
Extended Extended precision floating-point value (10 bytes on Win32, but 8 bytes on Win64) 
See page about multi-device applications.
PExtended TExtended80Rec
Real Alias of Double N/A N/A

String and Character Data Types

Type Description Pointer
AnsiChar ANSI character PAnsiChar
Char Wide character (16-bit) PChar
WideChar 16-bit character PWideChar
AnsiString Represents a dynamically allocated ANSI string whose maximum length is limited only by available memory. PAnsiString
RawByteString Use as a "codepage-agnostic" parameter to a method or function, or as a variable type to store BLOB data. PRawByteString
UnicodeString Unicode string PUnicodeString
String Alias for UnicodeString PString
ShortString A string of maximum 255 characters PShortString
WideString A string of 16-bit characters PWideString

File Data Types

Type Description Pointer
File File descriptor  
TextFileText Text file descriptor  

Boolean Data Types

Type Description Pointer
Boolean Represents a logical value (true or false). PBoolean
ByteBool Represents an 8-bit logical value.  
WordBool Represents a 16-bit logical value. PWordBool
LongBool Represents a 32-bit logical value. PLongBool

 

Other Data Types

 

Type Description Pointer
Array Represents an indexed collection of elements of the same type.  
Record Represents a heterogeneous set of elements.  
Variant Represents values that can change type at run time. PVariant
Pointer Represents a pointer to data of any type. PPointer
Currency A fixed-point data type used to hold monetary values. PCurrency


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
DELPHI基础教程第八章对象链接与嵌入发布时间:2022-07-18
下一篇:
delphi的坐标变换(ClientToScreen等函数的应用)发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap