JCL Help:JclSetToInt

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a set value to an integer.


Pascal

 function JclSetToInt(TypeInfo: PTypeInfo; const SetVar): Integer;


Parameters

Parameters Description
TypeInfo: PTypeInfo RTTI of the set as returned by System.TypeInfo(set type).
const SetVar Set value.


Return Value

The return value is an Integer representing the set.


Description

JclSetToInt converts a set value to an integer. Each bit in the integer value represents a value in the set. Note that the set variable in memory might be shifted up to 7 bits left. The actual number of bits shifted is equal to the ordinal of the first value modulo 8


About

Unit

JclRTTI


Donator

Theo Bebekis


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