endselect and endif are supposed to be 1 word (each)

btw.. if you do not want a lot of zeros (0) showing up in your console window, put a variable in front of your writevalue statement

$rc=writevalue...

[ 26 July 2002, 19:09: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask