Delphi Data Types
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 | |
| TextFile, Text | 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 |
Delphi Data Types的更多相关文章
- C and SQL data types for ODBC and CLI
C and SQL data types for ODBC and CLI This topic lists the C and SQL data types for ODBC and CLI a ...
- allow zero datetime=true导致datetime转换失败:MySql.Data.Types.MySqlDateTime”的对象无法转换为类型“System.Nullable`1[System.DateTime]
allow zero datetime=true导致datetime转换失败:MySql.Data.Types.MySqlDateTime”的对象无法转换为类型“System.Nullable`1[S ...
- "SQL Server does not handle comparison of NText, Text, Xml, or Image data types."
"SQL Server does not handle comparison of NText, Text, Xml, or Image data types." sql2000 ...
- ExtJS笔记 Ext.data.Types
This is a static class containing the system-supplied data types which may be given to a Field. Type ...
- Entity Framework Code First (七)空间数据类型 Spatial Data Types
声明:本文针对 EF5+, Visual Studio 2012+ 空间数据类型(Spatial Data Types)是在 EF5 中引入的,空间数据类型表现有两种: Geography (地理学上 ...
- Core Java Volume I — 3.3. Data Types
3.3. Data TypesJava is a strongly typed language(强类型语音). This means that every variable must have a ...
- MongoDB - The mongo Shell, Data Types in the mongo Shell
MongoDB BSON provides support for additional data types than JSON. Drivers provide native support fo ...
- SQL Server 2008 Data Types and Entity Framework 4
Because I’ve had a lot of conversations about spatial data types lately, I thought I would create a ...
- UserControl调用Umbraco的Data Types
本篇文章介绍的是基于Umbraco CMS技术搭建的网站所使用的相关技术. 1. 需求: 网站前台功能有个表单提交,表单控件用到下拉列表(dropdownlist),需求是在dropdownlist ...
随机推荐
- [转] VS 整合NUnit进行单元测试
Jeff Wong原文 5分钟实现VS2010整合NUnit进行单元测试 1.下载安装NUnit(最新win版本为NUnit-2.6.0.12051.msi) http://www.nunit.org ...
- ASP.NET 如何做出简单的验证码
如果说要做验证码,那不得不提的就是GDI+绘图了.我们都知道验证码是以图片形式展示的,而且是动态生成的,这样就需要我们去画出它. 科普一下,什么是GDI+? GDI+是图形设备接口(GDI)的高级版本 ...
- Exploit用法示例
一.msf> show exploits与msf> show payloads:这两条命令用于展示Metaploit目录中所有可用的漏洞利用代码和攻击载荷. 二.msf> searc ...
- Tcl之load
做一个ASIC项目,基本结构是MCU+ROM+RAM.目前想把单片机程序下载到ROM中,然后在ModelSim中仿真程序,得到运行结果.好二哥给出的Tcl下载文件如下,细细研读中... puts &q ...
- python实现不可修改的常量
因为种种原因,Python并未提供如C/C++/Java一样的const修饰符,换言之,python中没有常量,至少截止2015年年末,还没有这个打算.Python程序一般通过约定俗成的变量名全大写的 ...
- 在Python中怎么表达True
在Python中怎么表达True 为False的几种情况 0为False,其他所有数值皆为True 空串("")为False,其他所有字符串皆为True 空list([])为F ...
- httpd.conf 禁止运行PHP和html页面
<VirtualHost *:80> ServerName www.test.com DocumentRoot /var/www/www.test.com ErrorDo ...
- Hadoop学习记录(7)|Eclipse远程调试Hadoop
1.创建Hadoop项目 2.创建包.类 这里使用hdfs.WordCount为例 3.编写自定Mapper和Reducer程序 MyMapper类 static class MyMapper ext ...
- http协议要点
概念: HTTP是Hyper Text Transfer Protocol(超文本传输协议)的缩写.它的发展是万维网协会(World Wide Web Consortium)和Internet工作小组 ...
- schedule和scheduleUpdate
在init()函数里面加上scheduleUpdate(),这样才会每一帧都调用update(). Schedule() 函数有两种方式,一种带时间参数,一种不带时间参数. 带时间参数的,间隔指定时间 ...