I understand.
Now i needed to add a union to a TYPE (Windows API required it), the offset should not be reset to zero, it is supposed to only reset back to the previous member offset.
I got this already working with low level methods, handling the offsets myself, but is this done already in oxygen? Maybe you could add something like:
TYPE RECT
LONG A
LONG B
* ' Save the offset
LONG C
LONG D
< ' Go back to saved offset
LONG E
LONG F
END TYPE
This way A and B are part of the UDT while E and F overlaps C and D. This would allow to add UNIONS to TYPES.
The number of nested UNIONS in TYPES are undetermined, so, maybe if you decide to do this, the * can also have an ID for example:
TYPE RECT
LONG A
LONG B
* 1 ' Save the offset 1
LONG C
LONG D
< 1 ' Go back to saved offset 1
LONG E
LONG F
* 2 ' Save the offset 2
LONG G
LONG H
< 2 ' Go back to saved offset 2
LONG I
LONG J
< 1 ' Go back to saved offset 1
END TYPE
No offset ID would default to 1.