Am 26.02.2006 um 19:36 schrieb Sven E Olsson:
result = SelectColor( ByRef col, prompt ) It also says.. 'Note the usage of ByRef in the parameter list' The Example: b=SelectColor(c,"Select a Color") (Not using the ByRef)
Your are passing by reference: Once a parameter has been declared as ByRef,
the compiler passes the variables address, not it's value.
Why should I note the usage of ByRef in the parameter list?
Because you can't pass a constant and the the function might change the value of the passed variable, although it never referenced it directly by name. _______________________________________________ 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>
