Right - I was using slightly older code and 'another problem' was that a null parameter was setting color to 0 because whoever updated the code wasn't sure what it did I guess.
so - current code, I see this has been accounted for, and someone has also fixed the reported bug. That will teach me to not fix any code until I've read the changelogs. It says Prezmek fixed this but I'm quite sure it was working when I wrote it to begin with ans was broken along the way. Paul ----- Original Message ----- From: "Paul Tucker" <ptuc...@sympatico.ca> To: "Ron Pinkas" <ron.pin...@xharbour.com>; <xharbour-developers@lists.sourceforge.net> Sent: Sunday, February 08, 2009 9:55 AM Subject: Re: [xHarbour-developers] SetColor() bug >> Hi, >> >> Does anyone knows the intention behind line 454 of hbgtcore.c: >> >> if( nPos >= HB_CLR_ENHANCED && nPos < HB_CLR_UNSELECTED && >> *piColorCount > HB_CLR_UNSELECTED ) >> pColors[ HB_CLR_UNSELECTED ] = pColors[ HB_CLR_ENHANCED ]; >> >> It appears to cause the following bug: >> >> //------------------------------------------------------// >> PROCEDURE Main() >> SetColor( "W+/B, N/R, N/N, N/N, N/W" ) >> ? 1, SetColor() >> >> // This SetColor() wrongly overrides the 5th setting of SetColor()! >> SetColor( "W+/B" ) >> ? 2, SetColor() >> RETURN > > What this was supposed to emulate was this > > proc main > setcolor(",b/g") > > In that case, clipper sets the 5th element as well. However, I see we > also > have another problem with this. > > I'll see what went wrong. > > Paul > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > xHarbour-developers mailing list > xHarbour-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers