Setting string content

Started by loominous, Tue 23/09/2003 12:10:38

Previous topic - Next topic

loominous

What s the equivalent of:

int variable;

variable == 1;

when you re using strings?

That is what should be the second line here:

string variable;

(variable == ("New content"); ) <-------- ?
Looking for a writer

Ishmael

I am not RTFM'ing you, but....

StrCopy

StrCopy (string str1, string str2)

Copies the contents of STR2 into STR1, overwriting STR1's original contents. Use this instead of the assignment STR1=STR2 .
Example:

string message;
StrCopy(message,"This is a message");

will result a string message that will be "This is a message"
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

loominous

Thanks, I did read that section in the manual but didn t see the relevance.
Looking for a writer

SMF spam blocked by CleanTalk