Ronald ,

you may replace a goto label with a variable, works perfect ...

Your script will error on 'while @error = 0' (I assume this is the error check for readvalue =)

Replace that with 'if @error = 0'

hth

Jochen
_________________________