Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How come there is no GetTextString() command?

Author
Message
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 24th Nov 2011 18:18
Seems quite obvious that there should be one.

JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 24th Nov 2011 19:18 Edited at: 24th Nov 2011 19:18
Not very obvious to me! What is it supposed to do?

-- Jim
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 24th Nov 2011 19:30
Im guessing Check what string a Text "Object" contains
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 24th Nov 2011 20:22 Edited at: 24th Nov 2011 20:23
SetTextSting() alters the string of a text object.

As The Zoq2 says, GetTextString() would return the sting of a text object.

There are a lot of commands that returns various aspects from text objects, but none that returns the actual string.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Nov 2011 21:23
You set the text, so you already know what is in it. Just keep the value in a global variable.

Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 24th Nov 2011 21:54 Edited at: 24th Nov 2011 21:55
BatVink:
I set the size, color, depth and position of the text. But I don't have to create variables to store those values

If I can set something, it is only natural that I can get it later. Like everything else I set.

Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 24th Nov 2011 22:00
I agree, we need a get command here, make a request at the google board.

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 25th Nov 2011 16:10
There's already a request on there for this matter.

My signature is NOT a moderator plaything! Stop changing it!
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 27th Nov 2011 20:11
I noticed I needed this today actually

LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 7th Dec 2011 23:28
Okay, just added this to the list of commands coming in 107 build

I drink tea, and in my spare time I write software.

Login to post a reply

Server time is: 2024-11-22 19:17:10
Your offset time is: 2024-11-22 19:17:10