Subj : Final code To : Sean Dennis From : mark lewis Date : Sat May 08 2010 01:25 pm ml> fk_Client.ScreenType := ml> ord((ExtractWord(GTStr,11)='ANSI')or(ExtractWord(GTStr,11)='RIPSCRI ml> P')); ml> and it returns a 1 as desired with 'ANSI' or 'RIPSCRIP' and 0 with ml> anything else (ie: MONO)... if a three state is needed, then using ml> a boolean like this won't work but it is a quick and neat use of ml> code "shortcuts" ;) OH YES! watch your numbers, too... i switched my extractword to being zero based and restored it to using the ';' (not ':' colon as you posted) for space delimited work... the above ANSI field is 5 (zero based) or 6 (one based)... i tripped on it at first due to the differences since my first post so i wrote a quick test which showed me it was not grabbing the proper field... )\/(ark * Origin: (1:3634/12) .