Delphi Pointer Types

CK CK 3788 
Created at
Updated at  
22,099 0 0

Sometimes, you may confuse the name of the pointer type in delphi, because of the difference with C/C++. It's really make us confusion. Actually usage rule is also different, so I always forget how to use delphi pointer easily.
Anyway below table is useful when I need to implement something...
 

TypeNameSummary
TypePAnsiCharA pointer to an AnsiChar value
TypePAnsiStringPointer to an AnsiString value
TypePCharA pointer to an Char value
TypePCurrencyPointer to a Currency value
TypePDateTimePointer to a TDateTime value
TypePExtendedPointer to a Extended floating point value
TypePInt64Pointer to an Int64 value
TypePointerDefines a general use Pointer to any memory based data
TypePShortStringA pointer to an ShortString value
TypePStringPointer to a String value
TypePVariantPointer to a Variant value
TypePWideCharPointer to a WideChar
TypePWideStringPointer to a WideString value


Actually PByte is not mentioned above, you can make pointer as following rule:

 

P<The original data type>

 

For example, Pointer for integer type is PInteger. Isn't it simple ?
 

Tags Length PByte PChar PCurrency PDateTime PExtended PInt64 PInteger PString PVariant PWideChar PWideString Pointer PshortString element count in array string length Facebook X
Comments 0
  1. How To Turn On/Off Monitor with Delphi
    857
  2. How to get application version number in Delphi
    1,559
  3. The Delphi function to get My Videos folder
    2,337
  4. Get Application Data Path on Delphi
    839
  5. I want to select directory(folder) not file. How can I do that ?
    624
  6. Changing the Title of a Print Dialog in Delphi
    1,098
  7. Auto Logon Programming in Delphi
    1,033
  8. Thread Application Implementation in TThread
    670
  9. Is there directory selection VCL component in Delphi ?
    523
  10. How to launch the external application in Delphi ?
    1,074
  11. How to print external document ?
    423
  12. Delphi API to get windows temporary directory
    586
  13. Delphi API to get the current working directory
    1,254
  14. How to resize PNG file in Delphi ?
    1,223
  15. Get the length of arrays and a string
    1,742
  16. How to read/wrtie INI file in Delphi ?
    3,123
  17. How to get file created time, modified time, and last accessed time ?
    3,348
  18. Delphi string conversion functions - AnsiToUTF-8, UTF8Encode, ...
    646
  19. When subject is crashing in TIdSMTP VCL
    620
  20. How to send text/html based email in UTF-8 with TIdSMTP, TIdMessage VCL
    1,084
  21. How to encode subject content when sending mail with TIdMessage ?
    1,076
  22. Base64 Encoding/Decoding function for Delphi
    1,176
  23. How to send email by TIdSMTP VCL ?
    1,023
  24. How to return exit code such as exit() function in C/C++ ?
    670
  25. How to get parameter string ?
    1,249
  26. Save TBitmap image to Jpeg format image in Delphi
    717
  27. How to get screen resolution in case of using multiple monitors ?
    452
  28. How to turn off monitor ?
    435
  29. Find File at certain directory in Delphi
    441
  30. Sending email messages in .Net
    1,041
Recently updated
  1. Google OAuth Token Expiration: Causes and Solutions
    29
  2. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    55
  3. Why SPF and DKIM Are Essential for Linux Email Servers?
    49
  4. How do I create animated background for Google Meet?
    22,861
  5. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    271
  6. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    103
  7. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    168
  8. Array of arguments passed to script in PHP
    97
  9. Invalid Auction Storms in Ad Tech
    106
  10. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    207
  11. The Two Clocks of Ad Server Architecture
    77
  12. Frequency Cap Architecture Overview
    526
  13. Collecting Proof-of-Play from 100,000 Screens
    152
  14. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    302
  15. What is RedisVL?
    114
  16. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    246
  17. TPU & GPU Cluster Management Tools
    257
  18. The Concept of Scaffolding in AI Agents
    244
  19. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    596
  20. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    267
  21. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    353
  22. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    206
  23. Machine Learning: Training vs. Ranking
    229
  24. The Continuous Learning Machine: Designing a Loop That Actually Turns
    228
  25. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    202
  26. Designing a Data Curation System Around a Vector Database
    230
  27. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    263
  28. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    671
  29. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    200
  30. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    232