Internet Direct (Indy)
Home
PreviousUpNext
TIdMIMEBoundaryStrings.GenerateRandomChar Method

Generates a random character for use in the Indy MIME boundary marker.

Pascal
function GenerateRandomChar: Char;

Char - Random character to use in the MIME boundary marker.

GenerateRandomChar is a Char function used to generate a single character used in the string representing a MIME boundary. 

GenerateRandomChar returns random ASCII characters in the following categories and value ranges: 

 

Category 
Lower limit 
Upper limit 
digits 
Decimal 48 
Decimal 57 
uppercase letters 
Decimal 65 
Decimal 90 
lowercase letters 
Decimal 97 
Decimal 122 

 

GenerateRandomChar is used when generating the string that represents the Indy MIME boundary marker. The MIME boundary marker is of an arbitrary length, and contains other characters as recommended in RFC 2045.

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.