Hello all,
I'm trying to mimic in B4ppc the VB old style user defined types.
type xxx
aaa as integer
bbb as string * 12
ccc as long
...
end type
dim pippo as xxx
So, "pippo.aaa" was referring to an integer 2 bytes long, "pippo.bbb" to a string 12 bytes long and so on. Because I need fixed lenght fields to be filled with an ArrayCopy and then converted using the BytesConverter library by Agraham, I was trying to use
Dim aaa(4) as Byte
Dim bbb(8) as Byte
Dim ccc(31) as Byte
Dim Type(aaa, bbb, ccc) myVar
in order to get a "myVar.aaa" as an array of Bytes 4 bytes long, "myVar.ccc" as an array of bytes
31 bytes long and so on...
Perhaps I'm wasting my (and your) time. ArrayLen(myVar.aaa) returns 8. What's wrong?
Thanks,
Mimmo