Function GetWord(S: string; N: byte): String; Var Str: string; i: byte; Begin Str:=S+' '; For i:=1 to N-1 do delete(Str,1,pos(' ',Str)); GetWord:=Copy(Str,1,Pos(' ',Str)-1); End;