JCL Help:TWideStrings.IndexOfName

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the position of the first string with the form Name=Value with the specified name part.


Pascal

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


Parameters

Parameters Description
const Name: WideString The Name for which to search in the list.


Return Value

Zero based index of the first occurrence of a string whose Name part matches the specified name. If no occurrence is found -1 is returned.


Description

IndexOfName returns the zero based index of the first occurrence of the string of the form Name=Value where the Name part matches the specified Name. If no such occurrence exists in the list the function returns -1. This kind of strings is commonly found in .ini files which are usually not Unicode based but can be loaded into TWideStrings anyway.


See Also

IndexOf IndexOfObject


About

Donator

Mike Lischke


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