MyChat Scripts Engine: IntToStr
Converting an integer to a string.
Syntax
function IntToStr(iValue: integer): string;
Parameters and return values
Parameter |
Type |
Value |
iValue |
integer |
integer that you need to convert to a string. |
Function result
Text string that corresponds to the transmitted integer.
Example
var
iValue1, iValue2: integer;
sResult: string;
begin
iValue1 := 90534;
iValue2 := -10394;
sResult := inttostr(iValue1) + inttostr(iValue2) + '=' + inttostr(iValue1 + iValue2);
mLogScript('Expression: ' + sResult, '');
end.
Script work result
[18:16:53] (Log "test"): Expression: 90534-10394=80140