Page 1 of 1

Which script for text concatenation?

PostPosted: Sat Sep 03, 2005 10:39 pm
by regis
Hello to you all!

I turn to the GE community for the following inquiry:

I know that in C language, concatenating/merging 2 strings ("Hello" and "World" for instance) is coded as follows: "Hello" ## "World".
Nevertheless, taping the following code in GE is not accepted:

strcpy(PhraseVariable , "Hello" ## "World"); => does not work :cry:

Have you any idea on that issue?

Many thanks in advance.
Régis

PostPosted: Sun Sep 04, 2005 2:48 am
by BeyondtheTech
strcpy(PhraseVariable,"Hello"); // copy "Hello" into PhraseVariable
strcat(PhraseVariable,"World"); // concatenate "World" into PhraseVariable

result: PhraseVariable is "HelloWorld"

Which script for text concatenation?

PostPosted: Sun Sep 04, 2005 8:54 am
by regis
Many many thanks BeyondTheTech (I'll try this in the next minutes): I am your debtor now! (your help is very important as I am finishing my project and time is so short, these days!)
By the way, which project are you working on, using GE?
Regards
Régis

Which script for text concatenation?

PostPosted: Sun Sep 04, 2005 9:00 am
by regis
Dear BeyondTheTech,
I have just seen your Space Combat trailer: it looks very professional and I really like the music and graphX : felicitations and good luck in your work!
Regis