realbasic-nug
[Top] [All Lists]

Re: What are expressions? (ByRef)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: What are expressions? (ByRef)
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Tue, 28 Jun 2005 19:23:23 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <74E7BAE3-09DD-46EC-A8CF-0FA300ABA748 at kellerfarm dot com>

On Jun 28, 2005, at 4:35 PM, andrew at kellerfarm dot com wrote:

ScaleMoviePlayer(ByRef MovPlyr As MoviePlayer, iMaxWidth As Integer, iMaxHeight As Integer)

Since MoviePlayer is a class (and instances of classes are objects), there is no need for the Byref keyword here. A reference to the object is passed by default; you cannot pass the actual object. Only pass objects byref if you want to change the object that the object reference refers to :-)

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/>
AIM and Yahoo: fireye7517

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>