Yes, that would probably work as long as the dot operator is not
involved (dot operator implies operation, i.e. an expression).


Strout is correct (surprise, surprise)

if I pass showPict, no objection is raised and things work fine.
If I pass Me.showPict, the compiler will not allow it.

I had never realized that there was ANY difference in this context (a method of an object referring to its own property) between showPict and Me.showPict. For clarity (at least for my sense of clarity) I always use Me. when I can to remind myself that this IS a property rather than a variable when I review my code. From looking at other people's code, I suspected that I was in the minority in this regard but I always just thought I was being compulsively clear and more willing than others to type a few extra characters.

As per Charles suggestion, I will review the archives to see if I can come to a deeper understanding.


On Jan 16, 2007, at 3:04 PM, realbasic-nug- [EMAIL PROTECTED] wrote:



To the original poster: are you sure you need this parameter to be
ByRef?  Are you really creating a new Picture object and assigning it
in place of whatever was passed in, or are you just modifying the
passed picture?

Yes, I am modifying the passed picture. In this particular case, I am taking the picture and rotating it 90 degrees one way or another or flipping it with a vertical or horizontal mirror. I found code from others, that I copied, that will do this but my problems have been with integrating this code into my own. When I copy other's code, I sometimes do not understand it completely which causes problems when I adapt it for my purposes.

A little misunderstanding can go a long way in this business.

I may ultimately redo the code so that I create a new Picture object and assign it with a function rather than using the ByRef approach. Rotating a rectangular picture 90 degrees has a different consequence (because the overall shape changes) than flipping it with a vertical or horizontal mirror) so I may be able to approach this problem in a way that is clearer to my by using a function for both circumstances.

_______________________________________________
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>

Reply via email to