"To find the address of a variable in your code, you use the at symbol (@). A common reason for using this is when you want to pass a structured type variable to a procedure. You must pass a pointer to this variable as you cannot pass structured variables directly.
Example"
Code: Select all
Structure astruct
a.w
b.l
c.w
EndStructure
Procedure SetB(*myptr.astruct)
*myptr\b = 69
EndProcedure
Define.astruct myvar
SetB(myvar) ;Example has: SetB(@myvar)
Debug myvar\b ; same result as SetB(@myvar)
Is this a new automatic feature of PB that you don't need the @?
Or does it only work in some cases, or is it something else all together that I'm not comprehending (most likely!
