The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Converting Integers to the Binary equivilents
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Davek

USA
6 Posts

Posted - 11/01/2000 :  6:50:39 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have a column of integer data that contains when broken down to it binary equivilent contains packed discrete's IE bit 3 set = pump off, Bit 4 set switch ON.
Is there any simple way to interogate a particular bit value of an integer and write the value to a column
Dave Kirkley

cpyang

USA
1406 Posts

Posted - 11/01/2000 :  8:51:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
col(2)=col(1) & hex(8); // bit 4
col(3)=col(1) & hex(4); // bit 3


Go to Top of Page

Davek

USA
6 Posts

Posted - 11/02/2000 :  3:51:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot, that worked like a charm

Dave K
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000