On Feb 26, 2006, at 12:36 PM, Sven E Olsson wrote:

I have checked the LR about SelectColor

Syntax:
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)

No, you're using ByRef there. The "c" parameter is passed by reference.

Why should I note the usage of ByRef in the parameter list?

Because you should remember that you're passing the color parameter by reference. If you didn't notice that, you might think you were passing it in as a template, and be confused when it changes. Or you wouldn't understand why "SelectColor" would return a Boolean.

Adam Ernst

_______________________________________________
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