Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,512 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
data type conversions? #147291
08/11/07 13:30
08/11/07 13:30
Joined: Jun 2007
Posts: 28
D
Doriel Offline OP
Newbie
Doriel  Offline OP
Newbie
D

Joined: Jun 2007
Posts: 28

I am trying to set a string value with an integer value (name_txt.string = 24;) and when that specific code is executed by the engine, the engine just crashes. Is there any way I can convert from integer to string? Or better yet, what are all the conversion / casting functions available?

Thanks in advance,

Doriel

Re: data type conversions? [Re: Doriel] #147292
08/11/07 14:24
08/11/07 14:24
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I´m quite that I read, that lite-c is ANSI C Standart. Wich means that you can do it on the same way as in C.
If you don´t know how to do it, have a look at this post:
http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/776307/an/0/page/0#Post776307

Re: data type conversions? [Re: Slin] #147293
08/11/07 16:57
08/11/07 16:57
Joined: Jun 2007
Posts: 28
D
Doriel Offline OP
Newbie
Doriel  Offline OP
Newbie
D

Joined: Jun 2007
Posts: 28
I am using cscript. That's not the same thing as lite-c, is it?

Re: data type conversions? [Re: Doriel] #147294
08/11/07 17:14
08/11/07 17:14
Joined: Sep 2002
Posts: 700
Orange County, CA
L
LogantheHogan Offline
Developer
LogantheHogan  Offline
Developer
L

Joined: Sep 2002
Posts: 700
Orange County, CA
str_for_num()

str_to_num()

OR

name_txt.string = "24";

Check the manual for the functions listed above, they are your best bet I think.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1