JCL Help:TJclEnumerationTypeInfo.IndexOfName@string

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Retrieves a the inbdex of a name of the enumeration.


Pascal

 public function IndexOfName(const Name: string): Integer;


Parameters

Parameters Description
const Name: string Enumeration name to get the ordinal for.


Return Value

If the enumeration name exists within the sub range, it's ordinal value is returned, otherwise -1 is returned.


Description

IndexOfName retrieves the index for a given name. If the names does not exist within the sub range -1 is returned.


About

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