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);
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
the "error" is the following:
word: "Ahed"
vocals: "e"
consonants: "Ahd"
you see that the first letter of the consonants is actually a vocal...
Thank you!! It works!
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);
as
FOR i:=1 TO STRLEN(partialL) DO
IF isVocal(partialL) THEN
vocalsG += COPYSTR(partialL,i,1)
ELSE
consonantsL += COPYSTR(partialL,i,1);
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav