Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NthWord

Status
Not open for further replies.

mustangman96

Programmer
Apr 23, 2003
14
HU
In Delphi6 in the Psock unit there was a function called 'NthWord' which returned the nth word of a string. I can't find it in Delphi7.

How does it work in Delphi7?
 
if you have any ideea on how the string passed to the function as argument is formatted then you can easily write your own function that parses the string and whenever a 'word delimiter' is encountered, it would increase an integer until it would become equal to n. then it returns the word that was just parsed. shouldn't be complicated at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top