> (VB6 would throw you an error, since it actually does always > evaluate the second subexpression, indifferent from what the > first subexpression evaluated to.
In VB.net you now have AndAlso and OrElse keywords, both of which use short circuit logic. It's not as good as I'd like it but it's better than Nothing (null in any decent language ;-) adam ======================================== Beacon Computer Technology http://www.beacon-ct.co.uk Cambridge, UK ======================================== You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.