JCL Help:JclIntToSet

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts an integer value to a set.


Pascal

 procedure JclIntToSet(TypeInfo: PTypeInfo; var SetVar; const Value: Integer);


Parameters

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


Description

JclIntToSet converts an integer to a set value. 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