Topic Path: Symbol Reference > Functions > CharIsInEOF Function
ContentsIndexHome
PreviousUpNext
CharIsInEOF Function

Checks for end-of-line characters at a position in a string.

File
function CharIsInEOF(
    const AString: string; 
    ACharPos: Integer
): Boolean;
Parameters 
Description 
AString 
Values to be checked.
 
ACharPos 
Character position to be checked. 

Boolean - True if the specified character is an end-of-line character.

CharIsInEOF is a Boolean function used to indicate if the character in AString located at the position indicated by ACharPos is an End-Of-Line character (CR or LF). 

CharIsInEOF raises an EIdException exception with the message 'Invalid ACharPos in CharIsInEOF.' if ACharPos contains a value less than 1. 

CharIsInEOF returns True when the character at the indicated position has the value CR or LF.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.