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 ...
随机推荐
- SQLServer如何快速生成100万条不重复的随机8位数字
最近在论坛看到有人问,如何快速生成100万不重复的8位编号,对于这个问题,有几点是需要注意的: 1. 如何生成8位随机数,生成的数越随机,重复的可能性当然越小 2. 控制不重复 3. ...
- MYSQL中delete删除多表数据
MYSQL中delete删除多表数据 DELETE删除多表数据,怎样才能同时删除多个关联表的数据呢?这里做了深入的解释: 1. delete from t1 where 条件 2.delete t1 ...
- Intent(意图)
Intent的中文意思是“意图,目的”的意思,可以理解为不同组件之间通信的“媒介”或者“信使”. 目标组件一般要通过Intent来声明自己的条件,一般通过组件中的<intent-filter&g ...
- poj 2923(状态压缩dp)
题意:就是给了你一些货物的重量,然后给了两辆车一次的载重,让你求出最少的运输次数. 分析:首先要从一辆车入手,搜出所有的一次能够运的所有状态,然后把两辆车的状态进行合并,最后就是解决了,有两种方法: ...
- [Everyday Mathematic]20150212 求 $(\cos x+2)(\sin x+1)$ 的最大值
设 $$\bex t=\tan \frac{x}{2}, \eex$$ 则 $$\bex \cos x=\frac{1-t^2}{1+t^2},\quad \sin x=\frac{2t}{1+t^2 ...
- Yii系列教程(二):功能简介
1 MVC架构 1.1处理流程 一个Web请求在Yii内部的执行流程如下图所示: 1.2组件角色 组件名 角色与责任 index.php 入口脚本.创建Application的单例对象. applic ...
- hihocoder 1356 分隔相同整数 简单贪心
分析:考虑贪心,考虑填ans[i],前i-1个合法,现在剩下一些数, 那么挑出出现次数最多的数,次数为mx,当前剩余总数为sum 如果sum-mx>=mx-1那么肯定有解,这个想想就知道了(这种 ...
- [转]SqlPlus安装配置
本文转载自http://blog.csdn.net/wuxiaoyan_home/article/details/4826440 一.下载oracle 10g sqlplus软件 http://www ...
- For循环List中删除正确的方式
单线程public class Test { public static void main(String[] args) { ArrayList<Integer> list = new ...
- Hamming Weight的算法分析(转载)
看代码时遇到一个求32bit二进制数中1的个数的问题,感觉算法很奇妙,特记录学习心得于此,备忘. 计算一个64bit二进制数中1的个数. 解决这个问题的算法不难,很自然就可以想到,但是要给出问题的最优 ...