Posted: Thu Apr 07, 2005 4:50 pm Post subject: Small words to capitals.
The word is stored in a array.
code:
var word : array 1 .. 2 of string
for s : 1 .. 2
get word (s) : *
end for
for x : 1 .. 2
for s : 1 .. length (word (x))
word (x) (s) := Str.Upper (word (x) (s))
end for
end for
Why doesnt it work, also what do i do to make it work?
Sponsor Sponsor
Cervantes
Posted: Thu Apr 07, 2005 5:01 pm Post subject: (No subject)
The individual characters of a string are not variables, so you cannot change those individual characters. Luckily, you don't need to go through the string character by character with Str.Upper (btw, nice, I've never discovered that one before). So, just take out your s for loop.
MysticVegeta
Posted: Thu Apr 07, 2005 5:41 pm Post subject: (No subject)
woah! lol that worked? and here i was.. i feel like an idiot... anyways.. w00t 1/10th of the problem done