Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4438
| From | Joachim Bieler <support@votools.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: bCheckCollum Sum() |
| Date | 2012-12-07 08:26 +0100 |
| Message-ID | <aidk1nFafbdU1@mid.individual.net> (permalink) |
| References | <81aa69ed-1d8d-43d9-beed-e746943482c3@googlegroups.com> <ai7350Fq8jpU1@mid.individual.net> <1d295d82-b94c-4556-b0ef-eab644fd1f70@googlegroups.com> |
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" <paulo@clipinfor.com> 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
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
bCheckCollum Sum() Paulo Oliveira <paulo@clipinfor.com> - 2012-12-03 09:00 -0800
Re: bCheckCollum Sum() "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-12-04 21:01 +0100
Re: bCheckCollum Sum() Paulo Oliveira <paulo@clipinfor.com> - 2012-12-05 02:06 -0800
Re: bCheckCollum Sum() Joachim Bieler <support@votools.com> - 2012-12-07 08:26 +0100
csiph-web