Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Joachim Bieler Newsgroups: comp.lang.clipper.visual-objects Subject: Re: bCheckCollum Sum() Date: Fri, 07 Dec 2012 08:26:56 +0100 Lines: 55 Message-ID: References: <81aa69ed-1d8d-43d9-beed-e746943482c3@googlegroups.com> <1d295d82-b94c-4556-b0ef-eab644fd1f70@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net FgO6EpXN7OfdptEDSJhaWwau+Yda4P9v6Ozw6KHOb55q7QnRTgoqe/tLcURUiJvrzm Cancel-Lock: sha1:Tb8svPY/ZslgClkuuJYxVwjOeVs= User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <1d295d82-b94c-4556-b0ef-eab644fd1f70@googlegroups.com> Xref: csiph.com comp.lang.clipper.visual-objects:4438 Hi Paulo, the code below should solve your problem: method ButtonClick(oEvent) class MyDataWindow if self:oDCBrowser:InEdit() .and. oEvent:Control = self:oDCBrowser:EditControl if IsInstanceOf(self:oDCBrowser:EditControl, #CheckBox) DebOut("Value:", self:oDCBrowser:EditControl:Checked) endif endif return super:ButtonClick(oEvent) Regards, Joachim Bieler Am 05.12.2012 11:06, schrieb Paulo Oliveira: > Terça-feira, 4 de Dezembro de 2012 20:01:13 UTC, Urs Eggmann escreveu: >> Hi Paulo, >> >> >> >> Have a look to Joachims sample "VirtualColumn" If you do not find the answer >> >> there, give us a bit more info what you want to do. >> >> regards >> >> Urs >> >> >> >> >> >> "Paulo Oliveira" schrieb im Newsbeitrag >> >> news:81aa69ed-1d8d-43d9-beed-e746943482c3@googlegroups.com... >> >>> Hi all, >>> When i check a record using bCheckcollum in bBrowser, i need >>> sum(SOME_FIELD) of the records checked. >>> What is the correct method to do this. >>> TIA >>> Paulo Oliveira > Hi Urs, > > I need the same mechanism of ButtonClick() method: > > When i click a checkbox the ButtonClick() method is call and i can do everything i want, but in bBrowser when i check a bCheckCollumn only just after leaving the record is that I can sum() my other collumn. > > Summarizing: uncheck Sum(), check Sum(), without leaving the current record. > > Paulo Oliveira