Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Urs Eggmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: bColorCondition - once again Date: Thu, 20 Jun 2013 12:29:13 +0200 Lines: 38 Message-ID: References: <07c4f917-9247-4618-9478-35f33a7757f1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: individual.net AHzh4/kkNH94CJ8z65VJWQewfaLYeB8tPXtSSnYJuY6wlAu83r Cancel-Lock: sha1:wyXMe29FlAFR5OW6o7iP9k/541Y= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-EsetId: 35EFE320EBB6393466ABB8 X-EsetScannerBuild: 14112 Xref: csiph.com comp.lang.clipper.visual-objects:5389 Hi Krystian, Show us a little bit more code.... (Geoff would say (g)) In your fragment I miss the lines: oBrowser:ColorCondition:Add(oColorCondition) oBrowser:Refresh() are they there? regards Urs "Krystian" schrieb im Newsbeitrag news:07c4f917-9247-4618-9478-35f33a7757f1@googlegroups.com... > Hallo, > > I fight with the bbrowser and colors for separate cells. > There is a database with personal data and two fields for each day of > month. > In one field is stored the kind of day ("black" or "red"; not shown in the > bb) and in the second a user should type a data. > I would like to distinguish the cells with different colors depends on the > kind of the day. People (in rows) have different combinations of red and > black days. > How should i write the color condition ? > I tried many versions but i still look for ... > for dd := 1 to 31 > .... > cfld := 'RD_'+mmdd (mm - month, dd - day : RD_0620) field for kind of the > day > ccond := "Server:FieldGet("+cfld+") = 'R'" > ocolor := bColorCondition(ccond, srv, ... > or > ocolor := bCC(&("{|Server|"+ccond+"}"), srv ,,, > > Thank you for any suggestion > Krystian