473,386 Members | 1,799 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,386 software developers and data experts.

Shorthand for AND, OR, etc?

Is there a shorthand method for:

Status = Status AND 1

I'm thinking that if you can do:

StatusText &= "Test"

and

StatusCounter += 10

Then it should be possible with logic operators?

--
|
+-- Thief_
|
Nov 21 '05 #1
3 1062
"Thief_" <th****@hotmail.com> schrieb:
Is there a shorthand method for:

Status = Status AND 1


No.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

"Herfried K. Wagner [MVP]"
Is there a shorthand method for:

Status = Status AND 1


No.

At least a "short" handled answer?

:-)

Cor
Nov 21 '05 #3
I would say yes, but that would be a lie.

Thief_ wrote:
Is there a shorthand method for:

Status = Status AND 1

I'm thinking that if you can do:

StatusText &= "Test"

and

StatusCounter += 10

Then it should be possible with logic operators?

Nov 21 '05 #4

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

Similar topics

34
by: SeeBelow | last post by:
I see the value of a class when two or more instances will be created, but Python programmers regularly use a class when there will only be one instance. What is the benefit of this? It has a...
7
by: Fabian Neumann | last post by:
Hi! I got a problem with font-family inheritance. Let's say I have CSS definitions like: p { font:normal 10pt Verdana; } strong { font:normal 14pt inherit;
7
by: Dave | last post by:
Occasionally, I've seen people write CSS code in shorthand for specifying font styles. I don't exactly remember how it goes, but sometimes I see things like this: SPAN {font: arial, helvetica...
9
by: Andy | last post by:
I'm a beginning student of CSS and the shorthand order for margins, etc. raised an eyebrow. The clockwise order is what bothers me: p.margin {margin: cm cm cm cm} I think the order should...
354
by: Montrose... | last post by:
After working in c# for a year, the only conclusion I can come to is that I wish I knew c. All I need is Linux, the gnu c compiler and I can do anything. Web services are just open sockets...
2
by: unspammable | last post by:
I want to write a shorthand version of the following code, which iterates over all the elements of a STL container, e.g. vector: for (vector<char>::const_iterator i = v.begin(); i != v.end();...
0
by: David W | last post by:
I have a very simple class that just stores a number of strings so I can use them in an ArrayList bound to a Repeater. There is no validation or calculations needed for the properties. Is there...
10
by: =?iso-8859-1?B?dPZmZg==?= | last post by:
Usually I write something like ... if (x==1) { doSomething() } .... and that's how I see it in all the JS references I've found so far. But I have seen shorthand (?) for the same thing (?),...
7
by: castironpi | last post by:
any( iterab ) and all( iterab ) as shorthand for reduce( operator.or_, iterab ) and reduce( operator.and_, iterab ). What do you think?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.