JCL Help:JclStrToSet

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a string to a set value.


Pascal

 procedure JclStrToSet(TypeInfo: PTypeInfo; var SetVar; const Value: string);


Parameters

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


Description

JclStrToSet converts a string to a set value. The string may or may not contain brackets ('[' and ']') and/or ranges ('First value .. Last value'). Value/ranges must be seperated by a comma (','). If the string contains illegal values an exception is raised.


About

Unit

JclRTTI


Donator

Marcel Bestebroer


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