Hi Simon,
The VFP RGB() function only accepts 3 parameters, no less, no more. Your code is most likely Fox 2.6 code and references UDF with the same name.
>Whilst looking at an old routine, I noticed a number of RGB() functions containing 6 color pairs, i.e. the way it used to be.
>
>The help in VFP has been changed to only talk about 3 parameters for this function so that it can be used with ForeColor, BackColor etc.
>
>Is there a forward compatibility issue with code that still passes 6 values to RGB()? (Yes, it still does an @...SAY)
>
>TIA,
>Simon
--sb--