PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Prevent some characters during input in a text control
Prevent some characters during input in a text control
Started by Gautam, Mar., 23 2021 7:57 AM - 2 replies
Connect yourself…
Gautam
#1
Registered member
67 messages
Posted on March, 23 2021 - 7:57 AM
Hi All
Is there a way to prevent input of certain characters in a text field using the input mask or similar function or even through the control description window in Webdev 25?
For example when user inputs data into a text field I do not want the system to accept / < > characters in the text input. It should be possible for the user to enter any other character expect the three characters mentioned above.
Is this possible in Webdev 25?
Report
0
0
Vassilis Boutsikas
#2
Posted on April, 01 2021 - 10:26 AM
Hi Gautam,
One simple way is the use of Replace fucntion.
Replace(InitialString, ["<", ">", "//", "/", "\", "\\"], "")
This will replace the special characters you want to block, with none.
I hope to help
Regards
Vassilis Boutsikas
Report
0
0
Gautam
#3
Registered member
67 messages
Posted on April, 01 2021 - 9:01 PM
Thanks Vassilis, That would work.
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text