Subj : Final code
To   : Sean Dennis
From : mark lewis
Date : Sat May 08 2010 01:13 pm


ml> but i may be getting that mixed up with another language :/ if not,
ml> it might even be possible to put the calls to ExtractWord in there
ml> and forego the use of TempData completely...

ml> fk_Client.ScreenType :=
ml> ((ExtractWord(GTStr,11)='ANSI')or(ExtractWord(GTStr,11)='RIPSCRIP')
ml> );

i didn't get mixed up or forget :) the above is OK and works... only needs to
have 'ord' added since you need a 1 or a 0... so...

fk_Client.ScreenType := ord((ExtractWord(GTStr,11)='ANSI')or(ExtractWord(GTStr,11)='RIPSCRIP'));

and it returns a 1 as desired with 'ANSI' or 'RIPSCRIP' and 0 with anything
else (ie: MONO)... if a three state is needed, then using a boolean like this
won't work but it is a quick and neat use of code "shortcuts" ;)

)\/ark


* Origin:  (1:3634/12)