PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Prevent some characters during input in a text control
Prevent some characters during input in a text control
Iniciado por Gautam, 23,mar. 2021 07:57 - 2 respuestas
Miembro registrado
67 mensajes
Publicado el 23,marzo 2021 - 07:57
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?
Publicado el 01,abril 2021 - 10:26
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
Miembro registrado
67 mensajes
Publicado el 01,abril 2021 - 21:01
Thanks Vassilis, That would work.