Hi,
I would like your opinion about something concerning the OnChange event in a browse control. It seems to me that the OnChange event also should be executed when browse.value becomes 0. If you play my movie OnChange", you'll see what I mean.
(I don't know if it is the same in the grid control, I haven't tested that).
Kind regards, Marc
OnChange in a browse control
Moderator: Rathinagiri
OnChange in a browse control
- Attachments
-
- PRV_BROW.zip
- (1.47 MiB) Downloaded 220 times
-
- OnChange.zip
- (1.96 MiB) Downloaded 217 times
- dragancesu
- Posts: 921
- Joined: Mon Jun 24, 2013 11:53 am
- DBs Used: DBF, MySQL, Oracle
- Location: Subotica, Serbia
Re: OnChange in a browse control
onChange has good control but it makes more sense when used with multiple tables / BROWSE window
browse.value shows the current line, no sense that 0
Try to make two BROWSE controls, with master and detail table
Example. Invoice master data is Id_invoice (key), date, buyer, ...
Details of the id_invoice, id_goods, quantity, price, value, ...
common field are number (relation)
On master table onChange display details when you change row of Invoice
browse.value shows the current line, no sense that 0
Try to make two BROWSE controls, with master and detail table
Example. Invoice master data is Id_invoice (key), date, buyer, ...
Details of the id_invoice, id_goods, quantity, price, value, ...
common field are number (relation)
On master table onChange display details when you change row of Invoice
Re: OnChange in a browse control
Thank you for your reply and suggestion mr Dragancesu. I will continue experimenting with the Browse control.
I have no problem with Browse.value becoming 0. But what I am trying to demonstrate is this :
Initially Browse.Value = 1
When Browse.Value changes to 2, OnChange event is executed.
When Browse.Value changes to 3, OnChange event is executed.
When Browse.Value changes to 4, OnChange event is executed.
When Browse.Value changes to 0, OnChange event is NOT executed. Why not ? Wouldn't it be better if OnChange event is executed ? I wanted to know if there are others who have the same idea.
Kind regards, Marc
I have no problem with Browse.value becoming 0. But what I am trying to demonstrate is this :
Initially Browse.Value = 1
When Browse.Value changes to 2, OnChange event is executed.
When Browse.Value changes to 3, OnChange event is executed.
When Browse.Value changes to 4, OnChange event is executed.
When Browse.Value changes to 0, OnChange event is NOT executed. Why not ? Wouldn't it be better if OnChange event is executed ? I wanted to know if there are others who have the same idea.
Kind regards, Marc