Project

General

Profile

Bug #8807

A trigger of ANYWHERE type does not shadow existing trigger for the same event

Added by Vladimir Tsichevski about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:

History

#1 Updated by Vladimir Tsichevski about 1 month ago

  • Subject changed from Trigger does not shadow existing trigger as expected to A trigger of ANYWHERE type does not shadow existing trigger for the same event

Code example:

def var ch as char.
def var ch2 as char.

form ch with frame f1 side-labels.

enable all with frame f1.

procedure proc0.
   on "a" anywhere do:
      message "a inner".
   end.

   update ch2 with frame f2 side-labels.
end.

on "b" of ch in frame f1 do:
   run proc0.
end.

on "a" anywhere do:
   message "a outer".
end.

wait-for go of frame f1.

Scenario:

  1. press 'a' - the 'outer' trigger is executed. OK.
  2. press 'b' - a new frame appears, 'b outer ch start' is shown. OK.
  3. press 'a' - the 'a inner' trigger should be executed, but the 'a outer' trigger is executed instead.

So, the anywhere trigger, defined in the internal procedure proc0, does not shadow the trigger, defined for the same event in the global procedure, as expected.

#3 Updated by Vladimir Tsichevski about 1 month ago

This issue was first reported in #8606-44.

Also available in: Atom PDF