Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bitwise Functions in Clipper '87
Message
From
15/12/2000 18:48:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00454280
Message ID:
00454290
Views:
30
>I have an integer value I need to grab the bits out of. Mind you, in Clipper '87. If anybody knows a way, please let me know.

Chris,
I don't know if Clipper does that directly but every language knows modulus operator. Get Number%2 for the rightmost bit and then divide by 2 to get next. If it's a 32 bits integer repeat it 32 times.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform