JCL Help:JclGenerateSubRange
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: JclGenerateSubRange Function
Search in JCL Help
Search in all projects
Summary
Generates the RTTI structure for a new sub range type.
Pascal
function JclGenerateSubRange(BaseType: PTypeInfo; const TypeName: string; const MinValue: Integer; const MaxValue: Integer): PTypeInfo;
Parameters
Parameters | Description |
BaseType: PTypeInfo | Pointer to RTTI of ordinal type to base the new type on. The pointer can be obtained from a call to System.TypeInfo(ordinal type), JclGenerateEnum* or JclGenerateSubRange. |
const TypeName: string | Name of the newly generated RTTI. |
const MinValue: Integer | Minium value for the sub range. |
const MaxValue: Integer | Maximum value for the sub range. |
Return Value
The return value is a pointer to the RTTI info.
Description
JclGenerateSubRange generates the RTTI structure for a new sub range 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