Please enable JavaScript to view this site.

A-Shell Reference

Added February 2022

.DYNOFFSIZ$(ds.member)

.DYNOFFSIZ$(ds.@member$)

.DYNOFFSIZ() is equivalent to .OFFSIZ$() except that it operates at run time instead of compile time and works exclusively for DYNSTRUCT members.

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 for more details.

The return value is a string of the form "x~y" where x is the offset from the based of the ds DYNSTRUCT to the specified member (base 1), and y is the size of the member in bytes. As with .OFFSIZ$(), the function is mainly useful in conjunction with XTREE.

See Also

Introduction to Dynamic Structures

History

2022 February, A-Shell 6.5.1711:  Function added to A-Shell