Internet Direct (Indy) Version 9.0.2 Beta
TIdEncoder.EncodeString
Class function that provides encoding for a String value.

class function EncodeString(const AIn: string): string;
Parameters
const AIn: string
Input value to be encoded.

Returns
String - Encoded value of the input parameter.

Description
EncodeString is a Class function in TIdEncoder that provides encoding of the value in AIn using a temporary instance of TIdEncoder. EncodeString calls Encode using the transient instance to get the return value. The temporary TIdEncoder instance is freed before exiting from the EncodeString method.

Applications can use EncodeString when an instance of TIdEncoder is neither needed nor available in the application.