Can't understand why I've got the error

I have to separate vocals from consonants.... I'm trying this but if the word begins with a vocal, the vocal is putted in the vocals variable... why? thanks!

FOR i := 1 TO STRLEN(wordL) DO
IF wordL <> ' ' THEN
partialL += COPYSTR(wordL, i,1);

FOR i:=1 TO STRLEN(partialL) DO
IF isVocal(partialL) THEN
vocalsG += COPYSTR(partialL,i,1);

FOR i := 1 TO STRLEN(partialL) DO
IF NOT isVocal(partialL) THEN
consonantsL += COPYSTR(partialL,i,1);

Best Answers

Answers

Sign In or Register to comment.