Which script for text concatenation?

Non-platform specific questions.

Which script for text concatenation?

Postby regis » Sat Sep 03, 2005 10:39 pm

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
Many thanks,
Regis
regis
 
Posts: 48
Joined: Tue Nov 09, 2004 10:51 am
Location: France
Score: 1 Give a positive score

Postby BeyondtheTech » Sun Sep 04, 2005 2:48 am

strcpy(PhraseVariable,"Hello"); // copy "Hello" into PhraseVariable
strcat(PhraseVariable,"World"); // concatenate "World" into PhraseVariable

result: PhraseVariable is "HelloWorld"
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Which script for text concatenation?

Postby regis » Sun Sep 04, 2005 8:54 am

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
Many thanks,
Regis
regis
 
Posts: 48
Joined: Tue Nov 09, 2004 10:51 am
Location: France
Score: 1 Give a positive score

Which script for text concatenation?

Postby regis » Sun Sep 04, 2005 9:00 am

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
Many thanks,
Regis
regis
 
Posts: 48
Joined: Tue Nov 09, 2004 10:51 am
Location: France
Score: 1 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron