PDA

View Full Version : anything on Strings


flyrod
02-02-2001, 03:37 PM
do you have a good tutorial on using Strings? this is something i am having a hard time understanding.

Jesse
02-03-2001, 12:15 AM
No we don't, but I'll make one, I've added it to my list.

OK put it this way: String are something the computer doesn't understand. You say "here is a string" and it says "ahuh". It's like in history class when you copy your mate's homework, you've got no idea what it means, you're just copying it out!

Strings are defined using quotes, like: "this is a string, which the comp doesn't understand".
We can manipulate strings in such a way the the comp gets some understanding for example:

string1 = "this is a string";
len_string1 = length(string1);

This will retusn len_string1 = 16.
We could just as easily have done:

len_string1 = length("this is a string");

which also returns 16.

If you're having specific problems, post again and we'll help out.

Cheers


Jesse