Hello everyone
Xojo
I am grateful for the interest and scope of the following:
How can I make a particular column of a listbox, only allow entering numerical data?
Any ideas will be greatly appreciated.
Cordially,
Raúl Juárez Pulache
Hello everyone
Xojo
I am grateful for the interest and scope of the following:
How can I make a particular column of a listbox, only allow entering numerical data?
Any ideas will be greatly appreciated.
Cordially,
Raúl Juárez Pulache
Filter the pressed key in the KeyDown (or KeyUp; its late for me) Event and reject unwanted keys (Accept 0 thru 9, comma, dot, space, whatever, rejet everything else) ?
You can apply a mask to the active cell of the listbox (http://documentation.xojo.com/index.php/ListBox.ActiveCell). Apply the mask in the CellGotFocus Event handler (http://documentation.xojo.com/index.php/ListBox.CellGotFocus).
E.g.
me.ActiveCell.Mask = "999999"
Thank you very much
Wayne Golding
With Me.ActiveCell.Mask in the CellGotFocus Event, I solved the problem
regards
Raul Juarez Pulache