I have a function defined as follows
Function Update_Customer_Preview(ByRef c as canvas)
c.graphics.dostuff
End Function
I call this function like this, where SelectedCustomer is a canvas,
from the action event of a button
Update_Customer_Preview(SelectedCustomer)
And I get this error:
You can't pass an expression as a parameter that is defined as ByRef
-------
Am I correct in assuming that this is because RB is implicitly
turning my SelectedCustomer parameter into 'self.SelectedCustomer' at
compile time?? ('self.SelectedCustomer' is an expression)
If this is so, how can you pass a parameter byRef from outside it's
own object space??? Is it even possible?
- Tom
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>