Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: help Date: Tue, 11 Jul 2023 14:05:24 +0200 Lines: 48 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net vVhTJJXV1UEbclUIEf1t/QCbUK5G3pPMDZv4EjPXRMItdyU3s= Cancel-Lock: sha1:0r8klLSs+i2hZGP3/+2z5+Bfa1o= sha256:cYU7+IgxiisuJIiJYdoVQNxZnZopXULf4LIMYlFdeSA= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13863 Buon giorno Aurora, > i have to create the dispatch method to make the single line edit > understand that it has to display the value of a calculation, > basically I have a data windows that contains the list of suppliers > and a single line edit named supplier balance. I want the calculation > the supplier balance via notify() but for that I need to broadcast to > notify the supplier code. it may be a bit hard to explain. The result of your calculation should be put into a variable of your DBServer class, maybe like this: class MySupplier protect nBalance as float access Balance class MySupplier return nBalance method CalcBalance() class MySupplier nBalance := 2 * 4 Super:Notify( NOTIFYFIELDCHANGE, #Balance ) return nil And in your window you have a code like this: method Notify( kNotifyName, uDescription ) class SupplierWindow do case case kNotifyName == NOTIFYRECORDCHANGE oDCBalance:Value := self:Server:Balance case kNotifyName == NOTIFYFIELDCHANGE .and. uDescription == #Balance oDCBalance:Value := self:Server:Balance endcase return super:Notify( kNotifyName, uDescription ) HTH Wolfgang --