[Implemented] OffsetOf()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] OffsetOf()

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

Like SizeOf() but gives you the offset of a field in a structure.

e.g. offset.l = OffsetOf(mystruct\myfield)



--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)