Topic Path: Symbol Reference > Classes > TIdTCPConnection Class > TIdTCPConnection Properties > LastCmdResult Property
ContentsIndexHome
PreviousUpNext
TIdTCPConnection.LastCmdResult Property

Response code and text for the last response from the peer connection.

property LastCmdResult: TIdReply;

LastCmdResult is a read-only TIdReply property that represents the complete response message received during execution of a command request on the connection. Use properties in LastCmdResult to access the response code as a string or numeric value, and the text associated with the response message. 

LastCmdResult is allocated in Create, and freed in Destroy

LastCmdResult is updated when GetInternalResponse is called from GetResponse. LastCmdResult is cleared prior to capturing response values from the connection. 

Use SendCmd or methods in the IOHandler to send a command to the peer connection. 

Existing values in LastCmdResult are used in GetResponse and RaiseExceptionForLastCmdResult.

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