Yes.
___
[tt]
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Private Sub Form_Load()
Dim S As Single
Dim B(3) As Byte
S = 123.456 'or any other value
CopyMemory B(0), S, 4
Debug.Print B(0); B(1); B(2); B(3)
End Sub[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.