Be careful when looping on not @error as it can sneak up on you.
Code:
$var = 0
While $var < 10 and not @Error
'var = '+ $var ?
$var = $var + 1
If $var = 5
$rc=MessageBox("snookered","Test")
EndIf
Loop



You may start out OK but then later embelish the code somewhere inside the loop that could throw @Error. BTDTGTTS
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.