doubt in Convertion of integer to sting in skill code

Status
Not open for further replies.

Esakki raja

Junior Member level 2
Joined
Jun 17, 2011
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,409
Hi
I have doubt in convertion of integer to string in skill code

i.e

var = 5 (here var--> value is 5)

Here i want to set var-->value is "5" (string) by using the variable var

How can i do this
 

Try

var = “5”

5 would be a string.

And you can use formatted output for conversion integer to string (i.e. “sprintf()”).

Best Regards
 

There is no such command in SKILL, as I know. Such kind conversion can be easily done by formatted output function sprintf(), as I already mentioned, for example, if ivar – integer and svar – string, you can write

sprintf( svar “%d” ivar )
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…