Solved

Qword To Byte In HEX

Posted on 2003-11-23
1
917 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

758 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

19 Experts available now in Live!

Get 1:1 Help Now