Posted: Thu Feb 19, 2004 12:34 am
Perhaps if I take my time and comment it
Code: Select all
; OK, here we go. Defining a simple Long Variable called a.
a.l = 23
; Now we define a Pointer called *ptr of the Type LONG
; We also assign it the Memory Adress of the Variable a, thus *ptr pointing to a now
*ptr.LONG = @a
; As the Type LONG is indeed a Structure, we can access the content through
; the member l, using the simple Syntax structureVariable\Member.
; The only Member in LONG is the Long Value l
*ptr\l = 42
; Because *ptr pointed to a, we changed the content of a. It should now read 42
Debug a