`
com1com4
  • 浏览: 161610 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Delphi declaring a constant array of records.

 
阅读更多


type
  TSampleEnumType = (seNone, seONE, seTWO, seTHREE, seFOUR);
  TSampleRecord = record
    SampEType: TSampleEnumType;
    iValue: integer;
  end;

const
  TConstArrayofRecord: array [0..4] TSampleRecord (
    (SampEType: seNONE; iValue: 0),
    (SampEType: seONE; iValue: 1),
    (SampEType: seTWO; iValue: 2),
    (SampEType: seTHREE; iValue: 3),
    (SampEType: seFOUR; iValue: 4),
  );

分享到:
评论

相关推荐

    实验三:数组及其应用.doc

    A one-dimensional array is a collection of elements of the same data type stored in contiguous memory locations. Each element is identified by an index or subscript. The syntax for declaring a one-...

    Manning.Spring.in.Action.4th.Edition.2014.11.epub

    2.3.2. Declaring a simple bean 2.3.3. Injecting with JavaConfig 2.4. Wiring beans with XML 2.4.1. Creating an XML configuration specification 2.4.2. Declaring a simple 2.4.3. Initializing a bean with...

    Guide to Scientific Computing in C++

    6.4 A Second Example Class: A Class of Complex Numbers . . . . . 6.4.1 Operator Overloading . . . . . . . . . . . . . . . . . . . 6.4.2 The Class of Complex Numbers . . . . . . . . . . . . . . 6.5 ...

    Troubleshooting.Xcode.1484215613

    Troubleshooting Xcode is a handbook for software developers of all levels creating applications for iOS and OS X using both Objective-C and Swift. If you’ve struggled in the past to make Xcode work ...

    spring-framework-reference4.1.4

    Examples of dependency injection ............................................................. 36 Dependencies and configuration in detail ........................................................... ...

    SystemVerilog Reference Manual 3.1a(中英文版)+最新SV IEEE 标准

    Table of Contents Section 1 Introduction to SystemVerilog ...................................................................................................... 1 Section 2 Literal Values................

    spring-framework-reference-4.1.2

    Examples of dependency injection ............................................................. 36 Dependencies and configuration in detail ........................................................... ...

    JSP Simple Examples

    A two dimensional array can be thought as a grid of rows and columns. The first array will reflect to a row and the second one is column. int array Array is a collection of same data type. Suppose ...

    Developing Flex Applications 910p dda_doc88_cracker.zip

    Changing the appearance of a component at runtime . . . . . . . . . . . . . . . . . . . . . . 99 Extending components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

    Sakemail

    Some fucking email server return a bounded message declaring the boundary like ‘boundary = ‘ and not ‘boundary=‘ wich is clear in the RFC, fixed.1.8.3- A obscure bug was found by HuangYeJun from ...

    ZendFramework中文文档

    14.5.1. Declaring Filter and Validator Rules 14.5.2. Creating the Filter and Validator Processor 14.5.3. Retrieving Validated Fields and other Reports 14.5.3.1. Querying if the input is valid 14.5...

    Unreliable Guide To Hacking The Linux Kernel

    7.1. Declaring.........................................................................................................20 7.2. Queuing.....................................................................

    Prentice.Hall.C++.for.Business.Programming.2nd.Edition.2005.chm

    Declaring Objects and Classes 476 Section 11.2. A More Useful Class Accessor and Mutator Methods 487 Section 11.3. Constructor Overloading and Destructors 496 Section 11.4. Default Arguments ...

    Palm WebOS 开发.rar

    Anatomy of a webOS Application 13 UI Widgets 16 Services 18 Palm webOS Architecture 19 Application Environment 20 Core OS 21 Software Developer Kit 21 Development Tools 22 Mojo Framework and ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    All of a project's header files should be listed as descentants of the project's source directory without use of UNIX directory shortcuts . (the current directory) or .. (the parent directory). For...

Global site tag (gtag.js) - Google Analytics