declare 'arByte() As Byte' as 'Private Const' ?

J

John Nurick

But can you create a hex constant and code it to an array of bytes, no ?

I don't think VBA lets you get closer than garbage like this, using LSet
on variables of user-defined types:

Type tA
A(9) As Byte
End Type

Type tB
S As String * 10
End Type

Const S As String * 10 = "0123456789"

Sub Test()
Dim A As tA
Dim B As tB

B.S = S
LSet A = B
Debug.Print A.A(0), A.A(9)
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top