Function Reference


String

Returns the string representation of an expression.

String ( expression )

Parameters

expression An expression to convert into a string.

Return Value

Returns a string.

Remarks

Maximum string length is 2147483647 characters (but keep in mind that no line in an AutoIt script can exceed 4095 characters.)

Related

BinaryToString, Chr, ChrW, HWnd, Int, IsString, Number, Ptr, StringToBinary

Example

#include <MsgBoxConstants.au3>

Local $sString = String(10) ; The expression passed to String will return a string representation, currently 10 is a number.
MsgBox($MB_SYSTEMMODAL, "", "$sString contains the value: " & $sString & " and IsString returns: " & IsString($sString))