2

How do I convert an Integer value to a Byte Array in Visual Basic 6? I can obviously do this very easily in .NET with the BitConverter, but I couldn't find anything similar in VB6.

2 Answers 2

4

This should work for you: http://www.convertdatatypes.com/Convert-Byte-Array-to-Integer-in-VB6-VBA.html

Sign up to request clarification or add additional context in comments.

2 Comments

I am probably just missing it, but where is it specifically that it explains how to convert an integer into a byte array?
Sorry about that. The answer is fixed now.
3

You can LSet between two UDTS, you can use CopyMemory, you can use a TLB that gives access to parts of the runtime not normally exposed, etc. There are multiple options here.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.