?
Solved

Qword To Byte In HEX

Posted on 2003-11-23
1
Medium Priority
?
942 Views
Last Modified: 2008-01-16
I'm checking a checkSum value of a Protocol.

During that check i need to comper two values and see if they are the same.

Value1, Value2 are as long.

Value1 = 22500

Value2 = 228

Hex(Value1) will retern 57E4

and

Hex(Value2) will retern E4

They are the same, only Value1 is in Qword and i need only the Byte (E4).


How can i do the convertion from 22500 => &HE4

10X.





0
Comment
Question by:RivKin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
TigerZhao earned 2000 total points
ID: 9807821
Function ByteHex(Byval LongVal As Long) As String
    ByteHex = Right$("0" & Hex(LongVal), 2)
End Function
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

719 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