Home   Help Search Login Register  

Author Topic: Strings how to mix??  (Read 939 times)

0 Members and 1 Guest are viewing this topic.

Offline Praxtor

  • Members
  • *
    • Operflashpoint
Strings how to mix??
« on: 09 Jun 2007, 05:47:54 »
Hello:
I want to know if is posible make one mix with one string and other string for create one new string something like this.

_Strin1="2"
_Strin2="Hello"

I want get the string "Hello2" is this posible??

I know Hint Format ["%1%2",_Strin2,_strin1] i can see in the screen 2Hello but i want the string.

Some idea???

I know this:

_string = "Hello " + "world"

But is not the think that i want.
« Last Edit: 09 Jun 2007, 06:06:07 by Praxtor »

Offline Cheetah

  • Former Staff
  • ****
Re: Strings how to mix??
« Reply #1 on: 09 Jun 2007, 10:36:16 »
Code: [Select]
_string1 = "string";
_string2 = "2";
_string = format ["%1%2",_string1,_string2];

Think that this could work.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline DucusSumus

  • Members
  • *
  • I'm a llama!
Re: Strings how to mix??
« Reply #2 on: 10 Jun 2007, 01:13:31 »
The + operator will combine strings. 

_Strin2 + _Strin1 would return "Hello2." 

Format would work as well.