Loading ...
Sorry, an error occurred while loading the content.

Re: Getting a particular word in a string

Expand Messages
  • hugo_paulissen
    Roy, You can put the line in an array and make the space a delimiter... ^!Set %Z%=^$StrTrim(^$GetLine$)$ ^!SetListDelimiter ^!SetArray %Zetc%=^%Z% ^!INFO
    Message 1 of 2 , Feb 23, 2004
    • 0 Attachment
      Roy,

      You can put the line in an array and make the space a delimiter...

      ^!Set %Z%=^$StrTrim(^$GetLine$)$
      ^!SetListDelimiter " "
      ^!SetArray %Zetc%=^%Z%
      ^!INFO ^%Zetc0% words; word 3 is "^%Zetc3%"

      Hugo

      > I have set a variable by using ^!Set %Z%=^$GetLine$.
      > How can I get the 3rd (or any particular) word in that string?
      >
      > Thanks,
      > Roy
    Your message has been successfully submitted and would be delivered to recipients shortly.