FileDropCombo TakeAccepted fires twice, once for the FEQ and once for FEQ+1000: what are the extra controls?

Applies to: ABC chain, FileDropCombo control template; posted in the Clarion 5.5 EE group (the posters name abdrops.clw, not a version).

Problem

A FileDropCombo has a FEQ of 13. In the FDCB TakeAccepted embed point the poster always got two events: one with FIELD() = 13 and one with FIELD() = 1013. He asked what the FEQ+1000 field is.

Solution

  1. One poster pointed at FileDropComboClass.TakeEvent in abdrops.clw. On EVENT:OpenWindow it assigns the other controls from the FEQ of the combo:
    SELF.EntryField  = SELF.ListControl
    SELF.ListField   = SELF.ListControl + 1000
    SELF.ButtonField = SELF.ListControl + 2000
    
  2. So the design-time FEQ is the entry field, FEQ+1000 is the list box and FEQ+2000 is the triangular button that drops the list.
  3. Use the split to tell the two accepted events apart: the list box event means the user picked an item (copy it into the USE variable); the entry event means the user typed a value (check whether it is already in the list and add it if not).

Caveats

  • The original poster noticed that on picking an item the entry event arrives before the list event, which seemed backward to him; the thread did not explain it.
  • One poster found the extra FEQ+1000 control also upset his own class that separated runtime-created controls from design-time ones by the FEQ of the last control, because the list box looks like a runtime control to such code.
  • The offsets are read from one posted piece of abdrops.clw of that time; the thread did not check other versions.

Today (2026)

Likely still true for the ABC FileDropCombo class, but not re-tested; read the abdrops.clw of your own build for the offsets.

Sources: Bill C. (Aug 2001, the question), Arnor B., Jon W. (Aug 2001) in softvelocity.products.c55ee.