- Gzim Ramizi
- PowerBuilder
- Tuesday, 7 November 2023 01:35 PM UTC
Hi all,
is there a way how one could suppress a certain character for datawindow fields?
I have a field where I should allow just numbers (0-9) and letters (a-z, A-Z); if the user types something else, like spacebar or any other signs, the entry should just be suppressed (during the entry..., it should behave like didnt happen anything)..., without any messages, I tried smth over the key-event, but it doesnt work :(
//suppress space(?) - doesnt work!
if this.getcolumnname( ) = "reise_flugnummer" and key = keyspacebar! then return 1
I am on PB2021 1506 and Win 11.
TIA,
gzim
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.