Bitwise right-shift and left-shift in VB

Posted on 1999-12-27
Medium Priority
Last Modified: 2008-02-01
How can one do right-shift and left-shift operations in VB on Integer or Byte datatyppes.
Question by:lateef_sagar
1 Comment

Accepted Solution

Gunsen earned 150 total points
ID: 2309324
Use the div (\) operator for shift right & multiply for shift left...
1, LSR:  x \ 2
2. LSL:  x * 2

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question