Row-entry

Hi all,
Progress v-9:
I have a dumb browse dropped onto a dumb window. I can not get row-entry trigger to fire when I click in that row. What trigger/syntax am I after?
Cheers
 
I don't know if the windows version will work differently than the character version but in the character version I use 'value-changed' . The following code will increment the value of i each time you move to a different row.

HTH.

def var i as int no-undo.

def temp-table t-change
field cell1 as char
field cell2 as char
index pri is primary cell1.


def query q-change for t-change.


def browse b-change query q-change
disp cell1 cell2
with 2 down.

def frame f-change
b-change
with centered
row 1
title 'ROW CHANGE'.

create t-change.
assign t-change.cell1 = 'A'.
t-change.cell2 = 'B'.
create t-change.
assign t-change.cell1 = 'C'.
t-change.cell2 = 'D'.

open query q-change
for each t-change.

enable b-change
with frame f-change.

on value-changed of b-change do:
i = i + 1.
disp i
with frame f-1
row 10
centered
no-labels
title 'TRIGGER TEST'.
end.
wait-for close of frame f-change.
 
Sorted

THANK YOU ALL,
I have sorted the problem. I were just using the wrong trigger!! I should have been using the ON VALUE-CHANGED instead of ROW-ENTRY ... Because it is not an updateable browse and as such doesn't require that trigger so it will NEVER fire.
Cheers for pointing that out.
 
Back
Top