How to store the amount of characters from string to int? [SOLVED]

Started by Ubel, Sat 24/09/2005 14:23:32

Previous topic - Next topic

Ubel

For example:

"string text;" has the value of "Sample text".

This text has 11 characters. How could I store the number into an int. So that

int textnumber;

would have the value 11.

Ashen

textnumber = StrLen (text);

or

textnumber = text.Length;    (newer 2.71 betas)
I know what you're thinking ... Don't think that.

Ubel


SMF spam blocked by CleanTalk