The @DOS macro returns a text string so put quotes around your numbers like @DOS = "5.0".

You may also want to add a "CASE 1" at the end of your select to catch any unexpected data.

[ 11 April 2002, 17:54: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/