# .DYNOFFSET()
> [HTML Version](dynoffset().htm)
_Added February 2022_
**.DYNOFFSET(ds.member)**
**.DYNOFFSET(ds.@member\$)**
.DYNOFFSET() returns the offset to the specified [DYNSTRUCT](declare_a_dynstruct.htm.md) member from the base of the structure, starting at 1. Equivalent to [.OFFSET()](offset().htm.md) except applies only to DYNSTRUCTs, and is evaluated at run time instead of compile time.
In both variations, _ds_ should be either an mapped instance of a structure, or the structure definition name from the defstruct. The difference between the two variations is that in the first case, _member_ must be an actual reference to a member of the specified structure, whereas in the second case _member\$_ should be a string variable whose value matches a member of the structure. See [Dynamic Structure Reference / Usage](referenceusagedynamic.htm.md) for more details.
Note that the offset to a DYNSTRUCT member can also be retrieved in the pos member of the ST\_FLDDEF structure returned by [MX\_DYNSTRUCT](mx_dynstruct.htm.md) (DYNOP\_INFO), except that it starts at zero whereas .DYNOFFSET() starts at 1.
**See Also**
• [.OFFSET()](offset().htm.md)
• [Dynamic Structures](dynamicstructures.htm.md)
• [MX\_DYNSTRUCT](mx_dynstruct.htm.md)
**History**
2022 February, A-Shell 6.5.1711: Function added to A-Shell