Overriding string format char [

Started by liberator11, Sun 01/03/2009 20:54:05

Previous topic - Next topic

liberator11

I have been reading in from a file and it has for example array[20] and I want to print this directly to the screen but when I do the [ char automatically formats for a new line and I was wondering if there is a way to make it were the formating doesn't act on [ this char.

Joe

#1
If you need to write it in a GUI label then use this:

Code: ags

label.Text=String.Format("Your text %d more text",array[x]);


If you want any character to say it, then:

Code: ags

cCharacter.Say("Your text %d more text",array[x]);


EDIT:Sorry I missunderstood, don't use that.
Copinstar © Oficial Site

liberator11

I tried using that but it still display's on a new line.  I may have not explained it properly.  What I am tryig to do for example is                 Label11.Text = question.Append("array[20]");  And this in return would put the text in the gui label array[20] instead of array (this would be another line) 20]

Making it were the [ char doesn't form a new line instead prints out on the gui label as char [

Trent R

Don't mean to sound like a moderator, but search the forums first.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36944.0
This topic deals with the same thing and is only a few days old.



~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk