I thought this was going to be straight forward, given the wealth of
conversion functions in .NET, but it is proving more convoluted than
imagined.
Given the following
<code>
Dim ba(1) As Byte
Dim b As Byte
ba(0) = &h4
ba(1) = &h0
b = foo(ba)
</code>
What is foo() such that b contains &h40 ?
TIA
Charles
[I could write an algorithm for this, but there must surely be a succinct
conversion for it]
conversion functions in .NET, but it is proving more convoluted than
imagined.
Given the following
<code>
Dim ba(1) As Byte
Dim b As Byte
ba(0) = &h4
ba(1) = &h0
b = foo(ba)
</code>
What is foo() such that b contains &h40 ?
TIA
Charles
[I could write an algorithm for this, but there must surely be a succinct
conversion for it]
Comment