Skip to Content
0
Former Member
Oct 18, 2004 at 01:05 PM

UDF Form et_KEY_DOWN event.

54 Views

Hi all,

Has anyone had problems with the above event? I cannot seem to trap it on a UDF form, it works fine on a standard form. Using SBO 6.5 SP1 P7. For example:

- This code works fine.

*******************************************

Set oFilter = oFilters.Add(et_CLICK)

oFilter.Add -139 'Sales Order UDF form.

......

If pVal.FormType = -139 And pVal.EventType = et_CLICK Then

oApp.MessageBox "hello"

End If

*******************************************

- This doesn't work.

*******************************************

Set oFilter = oFilters.Add(et_KEY_DOWN)

oFilter.Add -139 'Sales Order UDF form.

......

If pVal.FormType = -139 And pVal.EventType = et_KEY_DOWN Then

oApp.MessageBox "hello"

End If

*******************************************

Any suggestions?

Regards,

Andrew.