Solved

Qword To Byte In HEX

Posted on 2003-11-23
1
919 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
1 Comment
 
LVL 4

Accepted Solution

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now