SRL Archive - OSR Help

OnKeyPress TEdit error


gerauchert

2013-05-24 01:33:32

I am trying to have a search option for a TListBox using a TEdit, and I am getting type mismatch and invalid parameter errors when I try to run the script. At first I thought I just declared the procedure's "sender: T__ " wrong, but after double checking, I found that OnKeyPress is listed as a TKeyPressEvent, which still gave me the error when I had that… along with TObject, TKeyEvent, ect.

Is there something special I have to do to declare the procedure for a OnKeyPress event?

EDIT: Also gave a whack at OnEnter and OnKeyUp/Down, which are also giving me the same errors.