re: Text entry limitation

"emile.a.schwarz" <[email protected]>
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <996873087.2799.1503047730843.JavaMail.www@wwinf1k31>
InStr ?

 

If InStr(TextField1.Text,"LIST OF VALID CHARACTERS") > 0 Then

// Deal with the valid character(s)

 

Else

// No nothing: reject other characters

End If

 

I do that to keep A-Z and 0-9 characters in a project. Works fine (I hope).

 

Emile

 

 

> Message du 18/08/17 10:35
> De : "Jean-Luc Arnaud" 
> A : "Nug" 
> Copie à : 
> Objet : Text entry limitation
> 
> Hi all,
> 
> What's the best way to limit text entry to only some characters?
> 
> Mask property doesn't seem to be the solution.
> 
> Of course, I could code for a kind of filter, but in addition to 
> authorized characters, I would have to manage Enter, Return, Tab, 
> arrows, Delete, ...
> 
> Any suggestion welcome.
> 
> -- 
> Jean-Luc Arnaud
> 
> 
> 
> 
> To unsubscribe, email [email protected]
> 
>


To unsubscribe, email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.