Page 1 of 1

pass by reference

Posted: Tue Feb 07, 2006 2:23 pm
by Fable Fox
does pb procedure support pass by reference, you know,

like func(a,b,c,d)
a = a* 2
....


where after the func is called, the value of a, b, c & d is changed

thanks.

Re: pass by reference

Posted: Tue Feb 07, 2006 2:31 pm
by traumatic
something like this?

Code: Select all

Procedure LikeThis(*a.LONG)
  *a\l = 5
EndProcedure

LikeThis(b.LONG)
Debug b\l