Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Petra, AndrewAMD, Quad, VoroneTZ, 1 invisible), 488 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Get a line in a file [Re: GorNaKosh] #306306
01/21/10 03:12
01/21/10 03:12
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Sorry, I meant a variable pointer (for example: var myVar;), not the number itself.

Re: Get a line in a file [Re: JGGamer] #306310
01/21/10 05:39
01/21/10 05:39
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
so you want to get the real script-name of the variable as string?
engine_getvarinfo()
like this???

Re: Get a line in a file [Re: GorNaKosh] #306510
01/22/10 18:48
01/22/10 18:48
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
My version of A7 doesn't support engine_getvarinfo(). It does recognize engine_getvar() though. I tried:
Code:
long type;
STRING* varToString = engine_getvar(myVar,&type);


...but the string pointer does not contain a string.

I'm wondering if this is what I want though. Just to be sure that you understand.
I want to change the 4 in var myVar = 4; to a string, so that I can show it on screen. When the variable changes, it will update on screen at runtime.

Isn't there some simple code like str(myVar), as found in python, that converts the variable to a string?

Re: Get a line in a file [Re: JGGamer] #306514
01/22/10 18:56
01/22/10 18:56
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
hey
str_for_num(STRING*, var) ?

Re: Get a line in a file [Re: MrGuest] #306562
01/23/10 05:48
01/23/10 05:48
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Hey! It worked!

GorNaKosh had given that to me before, and I didn't get it work. I guess I had complicated things.

Thanks for all your help. I can finally move on. Thanks

Page 3 of 3 1 2 3

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