I'm writing code with an array Dim'd as a UDT, where I access the value with this nomenclature:
To simplify the visual aspect of my code, I'd like to use a single letter such as X or Y in place of the D(i).X and D(i).Y nomenclature, where I have to set the current element of the array somehow.
Does PowerBASIC allow two variables to share the same address space, or have some other feature which would let me do what I want?
I thought of using a macro, but assumed it would mess up other statements which should contain an X or Y (such as MsgBox).
Code:
D(i).x D(i).y
Does PowerBASIC allow two variables to share the same address space, or have some other feature which would let me do what I want?
I thought of using a macro, but assumed it would mess up other statements which should contain an X or Y (such as MsgBox).
Comment