Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PyroMonkey on Thu 03/11/2005 11:51:47

Title: Integer -> String
Post by: PyroMonkey on Thu 03/11/2005 11:51:47
Is there any way to convert an integer into a string? Would you just use good old = or is there a specific command for it?
Title: Re: Integer -> String
Post by: Gilbert on Thu 03/11/2005 11:55:22
string blah;
int haha;

StrFormat(blah, "%d", haha);
Title: Re: Integer -> String
Post by: SSH on Thu 03/11/2005 11:58:10
Or with latest beta,

blah=String.Format("%d", haha);
Title: Re: Integer -> String
Post by: PyroMonkey on Thu 03/11/2005 12:06:22
Ah, I see. Thanks!