uncorrect return value

I'm trying to concatenate parts of a string but it returns a number... why? thank you!


IF (STRLEN(consonants) = 2) AND (STRLEN(vocals)>0) THEN
finalstring := consonants[1] + consonants[2] + vocals[1];

Best Answer

Answers

  • SowkarthikaSowkarthika Member Posts: 102
    Have you defined finalstring as a Text Variable ? Did you try displaying finalstring in MESSAGE box?
  • KishormKishorm Member Posts: 921
    Try the following instead...
    IF (STRLEN(consonants) = 2) AND (STRLEN(vocals)>0) THEN
      finalstring := COPYSTR(consonants,1,2) + COPYSTR(vocals,1,1)
    
Sign In or Register to comment.