Internet Direct (Indy)
Home
PreviousUpNext
AppendString Function

Adds a string value to existing data in a TIdBytes storage variable.

Pascal
procedure AppendString(
    var VBytes: TIdBytes; 
    const AStr: String; 
    ALength: Integer = -1
);
Parameters 
Description 
VBytes 
Storage for existing and appended values.
 
AStr 
Values to add to the end of existing byte data.
 
ALength 
Number of bytes to aapend from AStr. 

AppendString is a procedure used to concatenate values specified in AStr to the end of existing byte values. 

VBytes is the TIdBytes instance where the values in AStr will be appended. 

AStr contains the values to be added to the end of exisign values in VBytes. 

ALength indicates the number of bytes from AStr to append to VBytes. The default value is -1, and indicates that all bytes in AStr should be appended to VBytes. 

AppendString allocates additional storage for the values in AStr by calling SetLength for the array of bytes in VBytes. AppendsString calls CopyTIdString to perform the operation for the specified number of bytes. 

Use AppendBytes to concatenate two TIdBytes data types. 

Use APpendByte to append a single byte value to a TIdBytes data type.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.