Code: Select all
method Method1()
local iRow as DWORD
iRow := 99
self:method2(@iRow)
? iRow
return NIL
method method2(iRow)
? iRow
iRow := 5
return nil
Code: Select all
method Method1()
local iRow as DWORD
iRow := 99
self:method2(@iRow)
? iRow
return NIL
method method2(iRow)
? iRow
iRow := 5
return nil
Code: Select all
FUNCTION Start() AS VOID
LOCAL a,b AS ARRAY
a := {"old 1","old2"}
b := {"old 1","old2"}
TestArray(a,@b)
? a[1] // changed same array 1
? b[1] // old 1
?
a := {"old 1","old2"}
b := {"old 1","old2"}
TestArray(a,REF b)
? a[1] // changed same array 1
? b[1] // created new array 1
PROCEDURE TestArray(a,b)
a[1] := "changed same array 1"
b := {"created new array 1"}