Please enable JavaScript to view this site.

A-Shell 6.5 Development Notes

Language enhancement: new dot function .DYNOFFSET() returns the offset (base 1) to the specified DYNSTRUCT member from the base of the structure, starting at 1. Equivalent to .OFFSET() except applies only to DYNSTRUCTs, and is evaluated at run time instead of compile time. Syntax:

.DYNOFFSET(ds.member)   ! (Simple Indirect)  

.DYNOFFSET(ds.@member$)  ! (Indirect Deferred)

The offset to a DYNSTRUCT member can also be retrieved in the pos member of the ST_FLDDEF structure returned by MX_DYNSTRUCT (DYNOP_INFO), except that it starts at zero whereas .DYNOFFSET() starts at 1.