Member Login
Search
Jump to a Date
Sponsored Communities
Cool stuff
Twitter Feed
Neat Stuff

Visit our shop for nerds in control lifestyle products.
Thermal Overload
The threads that wouldn't die...
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
Fortune
A journey of a thousand miles begins with a cash advance.
RSS Feed
www.control.com/rss/
To get a personalized feed, become a member at no cost.
I want to make a conditional when a tag is 1 i want to set another to 1 and vice versa. Can anyone help?
i have tried SetTagBit("Tag",1); but this only sets the tag to one but not back down to 0.
i have tried SetTagBit("Tag",1); but this only sets the tag to one but not back down to 0.
Try this one.
int a;
a=GetTagBit("tag1");
if (a==1)
{
SetTagBit("tag2",1);
}
else
{
SetTagBit("tag2",0);
}
int a;
a=GetTagBit("tag1");
if (a==1)
{
SetTagBit("tag2",1);
}
else
{
SetTagBit("tag2",0);
}
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Patronize our advertisers!




