Yeah, but you found a regression bug !
Run this - its ok:
break on
$user = getobject("WinNT://@DOMAIN/@USERID,user")
if $user and @error = 0
?"user found"
endif
exit 1
change the conditional to this:
if $user <> 0 and @error = 0
or this:
if $user <> "" and @error = 0
and the conditional doesn't resolve properly (it still works ok, but only because @error = 0), the tell-tale sign is that if you look at the DOS console, a the number 1 gets piped to the screen (the result of $user <> 0) - maybe Ruud just changed the behavior here, who knows.
-Shawn
p.s.
$user = 0
still seems to work ok though
[ 22 May 2002, 16:33: Message edited by: Shawn ]