このステップでは、ミニ・フィルターのコードを記述します。ミニ・フィルターにはコード ウィザードがないので、フィルターのコードを手動で記述する必要があります。
Def_List Name(#Save_Keys) Fields(#xEmployeeSurname) Type(*Working) Entrys(1)Save_Keys 作業リストが、select ループによって上書きされたキー値を保存するのに使用されます。
Mthroutine Name(uInitialize) Options(*Redefine)
#COM_OWNER.avMiniFilter := true
#COM_OWNER.avMiniFilterpanel <= #PANEL1
Endroutine

Evtroutine Handling(#xEmployeeSurname.KeyPress) Options(*NOCLEARERRORS *NOCLEARMESSAGES) Keycode(#keycode)
If ('#keycode.value = Enter')
Endif
Endroutine
Inz_List #Save_Keys 1
Invoke #avListManager.BeginListUpdate
If '#Clear_List.ButtonState = Checked'
Invoke #avListManager.ClearList
Endif
Select Fields(#xEmployeeIdentification #xEmployeeSurname) From_File(XEMPLOYEE2) With_Key(#xEmployeeSurname) Nbr_Keys(*Compute) Generic(*yes)
Invoke Method(#avListManager.AddtoList) Visualid1(#xEmployeeIdentification) Visualid2(#xEmployeeSurname) Akey1(#xEmployeeIdentification)
Endselect
Invoke #avListManager.EndListUpdate
Get_Entry 1 #Save_Keys
