JCL Help:JclGenerateEnumType
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: JclGenerateEnumType Function
Search in JCL Help
Search in all projects
Summary
Generates the RTTI structure for a new enumeration base type.
Pascal
function JclGenerateEnumType(const TypeName: ShortString; const Literals: array of string): PTypeInfo;
Parameters
Parameters | Description |
const TypeName: ShortString | Name of the newly generated RTTI. |
const Literals: array of string | Array of literals. Opposed to the Delphi syntax, literals can contain any ASCII character. Literals can be a maximum of 256 characters long. |
Return Value
The return value is a pointer to the RTTI info.
Description
JclGenerateEnumType generates the RTTI structure for a new enumeration type.
About
Unit
Donator
Marcel Bestebroer
Notes
All generated types are stored in a list and get freed on finalization of the JclRTTI unit. Optionally you can use RemoveTypeInfo to remove a specific type.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page