Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3699

Not write character in textfield

$
0
0

hello group, I need to make sure that no characters are inserted in a textfield, but I can’t disable it. so I wanted to write:
in KeyDown:

if key=chr(13) or key=chr(3) or key=chr(27) then
// Permetti l’inserimento dell’Invio
Return True
Else
// Impedisci l’inserimento di qualsiasi altro carattere
Return False
End If

but it doesn’t work. Why?

5 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3699

Trending Articles