
-----------------------------------
MysticVegeta
Thu Apr 07, 2005 4:50 pm

Small words to capitals.
-----------------------------------
The word is stored in a array.


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?

-----------------------------------
Cervantes
Thu Apr 07, 2005 5:01 pm


-----------------------------------
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
Thu Apr 07, 2005 5:41 pm


-----------------------------------
woah! lol that worked? and here i was.. i feel like an idiot... anyways.. w00t 1/10th of the problem done  :lol:
