PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

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
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?
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
Registered member
67 messages
Posted on April, 01 2021 - 9:01 PM
Thanks Vassilis, That would work.