Solved

Qword To Byte In HEX

Posted on 2003-11-23
1
938 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 500 total points
ID: 9807821
Function ByteHex(Byval LongVal As Long) As String
    ByteHex = Right$("0" & Hex(LongVal), 2)
End Function
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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…
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.
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…
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…
Suggested Courses
Course of the Month5 days, 6 hours left to enroll

635 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