$ 0 0 Hi I am getting above error on below code Pos := STRPOS(Comm, '|'); Pos0 := STRPOS(Comm , 'SI/'); InNo := COPYSTR(Comm, Pos0 , Pos-Pos0); Thanks