473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Senior moment - can't remember a vb.net operator

Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?

E.g.

i = 10

if i = 10 <unknown Or-type operator> UnInstantiatedObject.member = 0
then
[process code]
end if
Since the first condition is true, the program won't blow up on the
UnInstantiatedObject operation.

Thanks,

Dave
Nov 21 '05 #1
4 1428
I think u refer to

AndAlso

OrElse
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Dave" <da*****************************@stic.net> wrote in message
news:e8***************@TK2MSFTNGP10.phx.gbl...
Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?

E.g.

i = 10

if i = 10 <unknown Or-type operator> UnInstantiatedObject.member = 0
then
[process code]
end if
Since the first condition is true, the program won't blow up on the
UnInstantiatedObject operation.

Thanks,

Dave

Nov 21 '05 #2
OrElse

"Dave" <da*****************************@stic.net> wrote in message
news:e8*************@TK2MSFTNGP10.phx.gbl...
Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?

E.g.

i = 10

if i = 10 <unknown Or-type operator> UnInstantiatedObject.member = 0
then
[process code]
end if
Since the first condition is true, the program won't blow up on the
UnInstantiatedObject operation.

Thanks,

Dave

Nov 21 '05 #3
* "Dave" <da*****************************@stic.net> scripsit:
Isn't there a new operator in vb.net that is a type of Or statement that
stops processing once a true condition is found, similar to C? Something
like OrIf?


'OrElse'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
To One Handed Man, Shiva, and Herfried,

Thanks to all. That's (OrElse) what I was looking for.

Now to figure out how to jam an AndAlso operator into my code to make it
complete. ;)

D.
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: alphatan | last post by:
Is there relative source or document for this purpose? I've searched the index of "Mastering Regular Expression", but cannot get the useful information for C. Thanks in advanced. -- Learning...
73
by: Claudio Grondi | last post by:
In the process of learning about some deeper details of Python I am curious if it is possible to write a 'prefix' code assigning to a and b something special, so, that Python gets trapped in an...
1
by: stan | last post by:
I am a complete newbe to python and only got here because I am trying to set up iTunes in game Second Life. Have followed all instructions but keep getting an error reading from my XP Pro OS as...
3
by: Aarathy Elangovan | last post by:
Dear Professional, Greetings!!! High Places Intl is a global Executive Search Consulting co specializing in senior and International assignments for a niche clientele. We have been retained by the...
1
by: =?utf-8?B?5Zyw55CD5Y+R5Yqo5py6?= | last post by:
In C++ we can not overload the explicit typecast operator like static_cast, dynamic_cast, const_cast and reinterpret_cast. The only we can do is the implicit typecast operator like operator...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.