How does one show 2 strings in one button?

Hey again, I have been trying to add a string after another, in one button.

ie I have a button that show the room name on a server, and I’m sure you know when you register a host it asks for a comment as a var.

I want to show the comment in the same button as the room name, as well as others like ping etc. (just the server comment for now).

I managed to put it in a scroll-view, but it cant manage to display the comment.
I’m sure it’s just a symbol, right?

I tried this…I’m just shooting in the dark though.

PS both gamename and comment are Strings

Cheers, Tim.

for (var i:int = 0; i<hostData.length; i++){

    if (GUI.Button(Rect(slistx2, slisty2+ (110 * i), 300, 100), hostData*.gameName + comment ))*

JoinServer(hostData*);*

}
##Example 2 heheh
for (var i:int = 0; i<hostData.length; i++){

if (GUI.Button(Rect(slistx2, slisty2+ (110 * i), 300, 100), hostData*.gameName / comment ))*
JoinServer(hostData*);*

}

considering code and your story it’s most likely you’re not accessing comment in the correct way.

You have hostData*.gameName + comment, but for me it would appear logical that comment is also in hostData.*
So it should be:
hostData_.gameName + hostData*.comment*_

Don’t understand what you are trying to achieve?

A multiline label?

Try if (GUI.Button(Rect(slistx2, slisty2+ (110 * i), 300, 100), hostData*.gameName + " " + comment ))*
- is a new line separator.
But don’t know if it will work for gui buttons. Think it should.