var
p: pointer; //or p: ^some variable type; p must be a global variable.
...
begin
...
p:= @A; //A is the variable u want to exchange (with B).
...
B:=p^; //B will now get the same address with B (or use @B:=p;)
...
end;
// Another way is just that uses the same "global" variable arround whole
// your program, or use
// procedure(var A: SomeType); to make the variable A called by reference
// , namely, called by memory address. ^_^
--
[1m※Origin: [1;33;44m§國立成功大學電機系BBS§ [m <bbs.ee.ncku.edu.tw> From:[ [1m140.116.22.15 [m]