Help getting started with the text parser

Started by stuh505, Thu 15/04/2004 02:03:20

Previous topic - Next topic

stuh505

how do you clear the text in the text box?  every time it pops up it still has the old text

Darth Mandarb

From the manual.

SetTextBoxText

SetTextBoxText (int gui, int object, string newtext)

Changes the text box OBJECT on gui number GUI to contain NEWTEXT. This might be useful to reset the text box to blank after the user has typed something in, or to fill in a default value.

Example:

SetTextBoxText(2,3,"");

will clear the textbox 3 of GUI 2.

stuh505

thanks Darth

in case you thought I was just being lazy and not looking it up (because I noticed you mentioned the manual), let me just say that it is not listed under the text box functions of the built in AGS function index (where I look up most stuff), and also not referenced in any of the text parsing related sections of the un-integrated manual

so its not that im lazy! haha

Darth Mandarb

You lazy sod!! :P

Actually, I just quoted 'from the manual', so you'd know where I got the information.  I know there's been times where something was in the manual but I couldn't find it because of how it was worded.

Good luck with the text parser!

I look forward to seeing what you come up with.

SMF spam blocked by CleanTalk