[futurebasic] Passing rects

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1998 : Group Archive : Group : All Groups

From: Jay Reeve <jktr@...>
Date: Tue, 26 May 98 00:52:15 +0100
Mark wrote:
>I never have been able to pass a rect correctly between functions (I always
>pass l,t,r,b). Maybe someone can show me how this should be done. I'm not 
>sure if the @rect is in the actual FN or in the call of the function (or 
>both). 

If I understand it correctly, it can be either place, but not both. These 
two examples should be equivalent:
============================
LOCAL FN receiveRect(rectAddr&)
'do something
END FN

FN receiveRect(@t%)  'Passes address of rect
============================
LOCAL FN receiveRect(@rectAddr&)  'Takes address of var passed
'do something
END FN

FN receiveRect(t%)
============================

If I have this wrong, will someone please set _me_ straight, too?

 0"0
 =J= a  y
  "