Internet Direct (Indy)
Home
PreviousUpNext
WordToStr Function

Converts a Word data type to its string representation.

Pascal
function WordToStr(
    const Value: Word
): String;
Parameters 
Description 
Value 
Word data type to convert to a string. 

String - String representation for the Word data type.

WordToStr is a String function used to convert the Word data type in Value to its string representation. 

 

For the .Net platform, WordToStr calls ToBytes and BytesToString to convert the bytes in Value. 

 

For platforms supporting the Borland RTL, WordToStr sets the length of the return value using the SizeOf function and the content of the Value argument. WordToStr call the Move procedure in SysUtils.pas to perform the copy operation that stores the content for the return value.

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.