How I can change a Label name? (SOVLED)

Started by Meny, Thu 20/12/2007 22:47:05

Previous topic - Next topic

Meny

Ok, Its makes me crazy. I had tried  to change the label's name like it say in the manual, but AGS don't have this command.
I had tried doing this-

-label name-.SetText("Serching....");

But the - SetText don't existing. What to do?
I have the same problem with the text box, when I want do erase the text that the player put in, I try to use

txtUserInput.SetText(" ");

And again it doesn't existing.
And, I tried it with the List Box and the same problem.
 
What to do?

Creator

I assume that you're using either AGS 2.72 or AGS 3.0 because I don't recognize the commands you're using. If you are using the newer version(s) the code should be:

Code: ags

-label name-.Text = "Searching...";


and

Code: ags

txtUserInput.Text = "";

monkey0506

Any SetText and GetText functions were obsoleted as of AGS 2.71 in favor of the new String type (note the capital 'S', it does make a difference).

You can read more about the String type in the AGS manual under Upgrading to AGS 2.71 and String functions.

Ashen

Also, GetText should direct you to the new version if you look it up in the manual.

What version are you using? While it's possible you're using the single version that Get/SetText was valid in (2.7), the rest of yur questions make it look like you just haven't read the manual.
I know what you're thinking ... Don't think that.

Meny

I feel stuped... I use 2.7 manual while I use AGS's 2.72 version.
Sorry my mistake. Just now I undersend why things like this happen to me.  :)
Thanks. 

SMF spam blocked by CleanTalk